Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Opening, and editing multiple files?

by jarich (Curate)
on Nov 25, 2006 at 07:08 UTC ( #585981=note: print w/ replies, xml ) Need Help??

in reply to Opening, and editing multiple files?

You say that you know how to open and edit one file; so you can just put that code in a loop:

# Read in all the file names: my @files = <*.$fileex>; # Go through files one at a time foreach my $file (@files) { # Open $file # edit file # close $file }

Let us know if this doesn't solve your problem.


Comment on Re: Opening, and editing multiple files?
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2015-11-29 13:41 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (751 votes), past polls