-----Original Message----- From: John W. Krahn [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 4:03 PM To: [EMAIL PROTECTED] Subject: Re: split
[EMAIL PROTECTED] wrote: > > Hey if I do split like the line below. What is put in options when there are only 3 > . > > ($hello,$good,$etc,$options) = split /\s/,$line; What happened when you tried it? John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> Just finished my test., what happened was that I was using my(......,$options) = @_; So no matter what I always had a $options , no matter if it was empty or not. So I changed my test from. if(defined($options)) to if($options) and this worked. Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>