Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
XP is just a number
 
PerlMonks  

Re^3: Copy rows of file to new document

by choroba (Abbot)
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 exploiting the Monastery: (6)
As of 2014-04-19 10:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (480 votes), past polls