Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Looping thru an array with differing intervals

by Fastolfe (Vicar)
on Dec 12, 2001 at 04:07 UTC ( [id://131119]=note: print w/replies, xml ) Need Help??


in reply to Looping thru an array with differing intervals

FYI,

This does not do what you think it does:

open IN_FILE, $in_file || die "Couldn't open $in_file: $!\n";

|| has a very high precedence. You probably want to use the lower-precedence 'or' operator here instead. Otherwise, your code above gets evaluated more like this:

open(IN_FILE, ($in_file || die "Couldn't open $in_file: $!\n"));

Obviously not what you want.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://131119]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-25 08:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found