Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: Renames files and directories but won't update files at the same time.

by Arien (Pilgrim)
on Aug 27, 2002 at 12:46 UTC ( [id://193141]=note: print w/replies, xml ) Need Help??


in reply to Re: Renames files and directories but won't update files at the same time.
in thread Renames files and directories but won't update files at the same time.

The construct

if (/(CAPTURE BEFORE)REGEX(CAPTURE AFTER)/) { s/(CAPTURE BEFORE)REGEX(CAPTURE AFTER)/$1REPLACEMENT$2/; }

is better written as a simple

s/REGEX/REPLACEMENT/;

— Arien

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2025-02-09 01:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (95 votes). Check out past polls.