C
clearguy02
Hi experts,
I have below script and I need to translate a full name to a login ID.
===========================================
while (<DATA>)
{
($last, $first) = split ("\s+", $_);
$login = $first[0] . $last;
print "$login\n";
}
__DATA__
Smith Bob
Carter John
Fisher Ann
Lewis Maggy
=======================================
Output should be:
===============
bsmith
jcarter
afisher
mlewis
=============
How can I modify the aboe script to get the desired output?
Thanks,
Rider.
I have below script and I need to translate a full name to a login ID.
===========================================
while (<DATA>)
{
($last, $first) = split ("\s+", $_);
$login = $first[0] . $last;
print "$login\n";
}
__DATA__
Smith Bob
Carter John
Fisher Ann
Lewis Maggy
=======================================
Output should be:
===============
bsmith
jcarter
afisher
mlewis
=============
How can I modify the aboe script to get the desired output?
Thanks,
Rider.