Yep...I got it ....!! ..
----- Original Message ----- From: [EMAIL PROTECTED] Date: Thursday, September 20, 2007 5:44 pm Subject: Re: RE: White space split To: [EMAIL PROTECTED], Andrew Curry <[EMAIL PROTECTED]> Cc: beginners@perl.org > --- [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/