Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Using open in for loop

by grep (Monsignor)
on Jun 14, 2007 at 15:16 UTC ( #621265=note: print w/ replies, xml ) Need Help??


in reply to Re: Using open in for loop
in thread Using open in for loop

The answers you are looking for are in my previous post

  • Add use strict; and use warnings; - Make your code work with them.
  • Simplify and print out
    print "$array[$i]\n"; #open(FILE,"$array[$i]") or die "Could not open file :$!"; # do something #close(FILE);

grep
1)Gain XP 2)??? 3)Profit


Comment on Re^2: Using open in for loop
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (16)
As of 2015-07-07 14:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (89 votes), past polls