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.