Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: How do I create, move and delete files and folders?

by setantae (Scribe)
on Mar 27, 2000 at 03:55 UTC ( [id://6197]=note: print w/replies, xml ) Need Help??


in reply to How do I create, move and delete files and folders?

You'll want to read up on mkdir, open, rename and unlink.

Here's some example code. -- Ed.

mkdir 'MyDir', 0777 or die "Oops, couldn't make dir: $!"; open FILE1, '>MyDir/test1.file' or die "Couldn't open file: $!"; print FILE1 'This goes in test1.file'; close FILE1; chdir 'MyDir'; rename 'test1.file', 'MyName.txt'; unlink 'MyName.txt';

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-03-29 09:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found