Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^4: Open in for loop/array structure

by ikegami (Patriarch)
on Jun 03, 2008 at 00:02 UTC ( #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? | Other CB clients
Other Users?
Others examining the Monastery: (2)
As of 2022-09-24 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (116 votes). Check out past polls.

    Notices?