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

Re: findreplace.pl

by Anonymous Monk
on Jan 20, 2004 at 09:40 UTC ( [id://322544]=note: print w/replies, xml ) Need Help??


in reply to findreplace.pl

Just a small suggestion, but if you leave the check for a replace argument out of the following code:
  unless ($phash{find} && $phash{replace}){
so
  unless ($phash{find}){
Then you can also do a find Delete.

Also as a side note, in windows, the find argument appears to be always preprocessed for octal binary codes, regardless of the state of the -a switch. I can't however find a reason, although the code looks secure.
if ($phash{ascii}){ $phash{find}=&asciicode($phash{find}); $phash{replace}=&asciicode($phash{replace}); }
Regards, Dermot

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-04-24 06:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found