> -----Original Message-----
> From: WC -Sx- Jones [mailto:[EMAIL PROTECTED] 
> Sent: Friday, 5 March 2004 4:16 AM
> To: Michael Weber
> Cc: [EMAIL PROTECTED]
> Subject: Re: Handling blank lines in while(<CONF>) construct
> 
> As far as this:
> 
> "$yellow")}
>          elsif ( $conf_line[1] =~ "blue" ) {push(@color_array,
> 
> Why not just:
> 
> sub push_Colors() {
>       my $color = shift;
>       push(@color_array,$color)
> }
> 
> Called like:
> 
> push_Colors($conf_line[1]);


I thought he was pushing '$yellow' when he found 'yellow'.  

Your code would just push the word found (ie, literal 'yellow')

I think...

One of us is confused ;-)










> 
> Unless of course your data input just has a color embedded:
> sometextcolorredorbluebutwhoknows...
> 
> HTH;
> -Bill-
> __Sx__________________________________________
> http://youve-reached-the.endoftheinternet.org/
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
> 
> 
> 

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to