Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: getting error messaeg while substitution

by Anonymous Monk
on Apr 02, 2006 at 18:32 UTC ( [id://540774]=note: print w/replies, xml ) Need Help??


in reply to Re: getting error messaeg while substitution
in thread getting error messaeg while substitution

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on Re^2: getting error messaeg while substitution

Replies are listed 'Best First'.
Re^3: getting error messaeg while substitution
by nobull (Friar) on Apr 02, 2006 at 19:52 UTC
    You appear to be getting very confused between code and data.

    Am I correct in understanding that you have a Perl script that is acting to modify a file that happens to contain text that is (or at least looks like) a Perl script?

    The s/// operator is not the system() function. This remains true notwithstanding the fact that the text that it happens be acting on looks like a line of Perl code with a system() function in it.

    The sequence \p in a Perl regular expression has a meaning (to do with Unicode).

Re^3: getting error messaeg while substitution
by fishbot_v2 (Chaplain) on Apr 02, 2006 at 19:53 UTC

    You are incorrect. You are way, way overestimating interpolation of strings. Perl only executes external programs in backticks, system() and exec(). (Well, and a few other ways, but definitely not in regexes or double/single quoted strings.)

    The \p in regexen is for Unicode properties. You definitely don't want it there.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-18 09:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found