in reply to Re: GetOpt::Long usage style
in thread GetOpt::Long usage style

This is also easy:
(my $verbose='');
This is an empty list (or better, a list containing that particular piece of emptiness referenced by $verbose.

You might call it easy, but it's wrong. Twice. First of all, parenthesis do NOT make lists. Context makes lists. Parenthesis are used for precedence.
Furthermore, if the context would demand a list (which in this case it does), it's not an empty list. How could it be? There's a scalar inside it. It's a one element list.


Replies are listed 'Best First'.
Re: Re: GetOpt::Long usage style
by robartes (Priest) on Mar 08, 2003 at 23:22 UTC
    Goes to show again that I feel perfectly comfortable with my foot in my mouth. Thanks for the heads up, demerpq, zby and Abigail-II!