"Shishir K. Singh" wrote:
> 
> Probably  the record is like
> 
> $split_cellname = ABCDEFGHIJK:12345678
> 
> ($cellname = $split_cellname) =~ s/:.*//;
> 
> $cellname will now have "ABCDEFGHIJK"
> 
> $split_cellname =~ s/:.*//
> 
> => substitute any character starting with : till the end of the string (s/:.*/),  in 
>$split_cellname,  to NULL (//)
> => and move this value to $cellname

_First_ it assigns the value of $split_cellname to $cellname and _then_
it performs s/:.*// on $cellname.

:-)

John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to