Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

getting error messaeg while substitution

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

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

i am having a file in which i have statement
$ret_val = system("perl $ENV{SOURCE_ROOT}/scripts/Test_script.pl");
and i want to make a substitution in which i want to remove occurence of perl from this line. i tried this by using file handle for that file and doing following substitution
$line =~ s|\perl \$ENV{SOURCE_ROOT}/scripts/Test_script.pl|\$ENV{SOURC +E_ROOT}/scripts/Test_script|si;
but i am getting following error message
Can't find unicode character property definition via main->e or e.pl a +t unicode/Is/e.pl line 41
i dont know why this is coming . how can this be removed so that my substituton is done correctly

Code tags added by Arunbear

Replies are listed 'Best First'.
Re: getting error messaeg while substitution
by dave_the_m (Monsignor) on Apr 02, 2006 at 18:30 UTC
    $line =~ s|\perl...
    remove the backslash before the p in 'perl'

    Dave.

    A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-25 17:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found