[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: oops, continuing ``Re: [FWP] RFC''



Jeff Pinyan wrote:
> >for (($ARGV[0]..$ARGV[1]) || 0) {
> 
> (EXPR .. EXPR) in scalar context is the flip-flop operator.  And I highly
> doubt $_ =~ /$ARGV[0]/.  So that is ALWAYS for (0) { ... }.

i think you're thinking that the flip-flop implies a pattern
match.  it doesn't.  if $ARGV[0] is true, the loop will be
for (1) { ... }.
--
Steve Lane <sml@zfx.com>

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe