Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Copy rows of file to new document

by vinoth.ree (Vicar)
on Jan 24, 2013 at 07:27 UTC ( #1015096=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict; 
    use warnings; 
    my $dir_path="Your Directory Path"; 
    opendir (DIR, $tmp_dir) or die $!;
    
  2. or download this
    open (MYFILE, '>>data.txt');
    
  3. or download this
    while (my $file_name = readdir(DIR)) {print "$file_name\n";}
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2014-04-21 01:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (489 votes), past polls