Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 lurking in the Monastery: (9)
As of 2014-07-11 00:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (217 votes), past polls