How about: print reverse(chomp @lines = <STDIN>);

?


Greg
--- Sukhpreet Singh <[EMAIL PROTECTED]> wrote:
> Why can't I do this?
> 
> print chomp reverse(@lines = <STDIN>);
> 
> or
> 
> print chomp(reverse(@lines = <STDIN>));
> 
> I get
> 
> Can't modify reverse in chomp at ex3-1.pl line 3, near "))"
> Execution of ex3-1.pl aborted due to compilation errors.
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

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

Reply via email to