Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: Open in for loop/array structure

by ikegami (Patriarch)
on Jun 03, 2008 at 00:02 UTC ( [id://689777]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
       my $filename = <$FN[$k]>;
       print("$filename\n");
    }
    
  2. or download this
    a
    Use of uninitialized value in concatenation (.) or string at 689777.pl
    + line 6.
    
  3. or download this
    for (@FN) {
       while (defined(my $filename = glob($_))) {
          ...
       }
    }
    
  4. or download this
    for my $filename (@FN) {
       ...
    }
    
  5. or download this
    for (0..18, 20..28, 30..38) {
       my $filename = sprintf('out-02-%02d.txt', $_);
       ...
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-04-24 11:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found