in reply to @_ still mystifies me
I think these braces are in the right place:
What you want is:my @lexlist = @_ or sort keys %lexicon; # read as (my @lexlist = @_) or (sort keys %lexicon);
Or use braces:my @lexlist = @_ || sort keys %lexicon; # read as my @lexlist = (@_ || sort keys %lexicon);
Hopefully the braces make it a little more readable :) or, and & not have much lower presedence than || && and !my @lexlist = (@_ or sort keys %lexicon);
In my experience, to avoid such confusion, I avoid the English versions...
cLive ;-)
Update: see below :) /me eats humble pie and revisits old scripts to see why this has never caused me a problem b4...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: @_ still mystifies me
by Aristotle (Chancellor) on Jun 01, 2002 at 18:36 UTC | |
by merlyn (Sage) on Jun 01, 2002 at 18:40 UTC | |
|
Re: Re: @_ still mystifies me
by Anonymous Monk on Jun 01, 2002 at 17:32 UTC |