Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Copy rows of file to new document

by choroba (Canon)
on Jan 25, 2013 at 09:25 UTC ( #1015295=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $dir_path="\Incoming\Temp";
    
  2. or download this
    opendir (Incoming\Temp, $tmp_dir) or die $!;
    
  3. or download this
    opendir my $DIR, $dir_path or die $!;
    
  4. or download this
    open (MYFILE, '>>vehicles.txt');
    
  5. or download this
    open my $OUT, '>>', 'vehicles.txt' or die $!;
    
  6. or download this
    while (my $filename = readdir $DIR) {
        open my $FILE, '<', "$dir_path/$filename" or die $!;
    ...
            print $OUT $content;
        }
    }
    
  7. or download this
    CLOSEDIR;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (15)
As of 2015-07-31 20:33 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 (281 votes), past polls