Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Perl Script to create sample files in each directories created.

by Laurent_R (Monsignor)
on Oct 09, 2013 at 16:59 UTC ( #1057592=note: print w/ replies, xml ) Need Help??


in reply to Perl Script to create sample files in each directories created.

If you need to create empty files in the directories, just open a file with Perl and close it. Something like this:

my $file = "$dir/file.png"; open my $FH, ">", $file or die "could not open $file $!"; close $FH;


Comment on Re: Perl Script to create sample files in each directories created.
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2016-02-06 01:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (212 votes), past polls