--- [EMAIL PROTECTED] wrote:
> Thanks Andrew and Jeff.
> ($cmd1, $rest)=split/\s+/,cmd$; worked for me.
> my ($cmd1) = split/\s+/,$cmd; is still giving me the length...
> I wanted to use something like above ...
you may type something wrong?see the test,
$ cat t3.pl
my $cmd = "maheshverama #XXXXXXXXXXXXXXXXXXXXXX#";
my ($cmd1) = split /\s+/,$cmd;
print $cmd1;
$ perl t3.pl
maheshverama
____________________________________________________________________________________
Sick of deleting your inbox? Yahoo!7 Mail has free unlimited storage.
http://au.docs.yahoo.com/mail/unlimitedstorage.html
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/