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

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



on 5/8/00 7:58 PM, Jeff Pinyan at jeffp@crusoe.net 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) { ... }.  And wouldn't
> it be more normal to do:
> 
> for (1 .. ($ARGV[0] || 1)) {
> ...
> }
> 
> That way, only one argument is expected, and it defaults to 1.


Yes, I seen that about 30 minutes AFTER I posted  :(
(The other stuff is definitely better also.)

Thx!  -Sneex-  :]
- FCCJ * 501 W State St * Jacksonville, Fl 32202 * 904/632-3089 -



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