Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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.

jarich


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2015-07-06 00:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls