Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: open file for read/write

by VSarkiss (Monsignor)
on Dec 08, 2005 at 15:20 UTC ( #515265=note: print w/ replies, xml ) Need Help??


in reply to Re: open file for read/write
in thread open file for read/write

Minor nit, but a C-style for loop like that is really unnecessary here. You can do:

for $elem (@ARRAY) { $elem =~ s#find#replace#; }
Or even more concisely:
s#find#replace# for @ARRAY;


Comment on Re^2: open file for read/write
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (16)
As of 2015-07-30 15:00 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 (271 votes), past polls