>
> Hi .
>
>
>
> Please help me in resolving errors in the following script
>
>
>
> 1.open(INPUT,"<Test.txt");
>
> 2.open(OUTPUT,">new.txt");
>
> 3.$temp = \/user\/gowri\/rem2;
>
> 4.while ( <INPUT> ) {
>
> 5.$_ =~ s{\\/user\\/cce\\/dbg_tool}{$temp};
>
> 6.print OUTPUT $_;
>
> 7.}
>
>
>
> Errors:
>
> Bareword found where operator expected at example1.pl line 5, near
> "$str
> =~ s{\\/user"
>
>   (Might be a runaway multi-line // string starting on line 3)
>
>             (Missing operator before user?)
>
> Backslash found where operator expected at example1.pl line 5, near
> "user\"
>
> Bareword found where operator expected at example1.pl line 5, near
> "/iprcce\\/dbg_tool"
>
>             (Missing operator before dbg_tool?)
>
> syntax error at example1.pl line 5, near "$str =~ s{\\/user"
>
> Unmatched right curly bracket at example1.pl line 5, at end of line
>
> Execution of example1.pl aborted due to compilation errors.






Looking at your numbered script above, I cannot find $str nor /iprcce/


Perhaps you need to copy and paste the program you were trying to run
rather than retype it in an unusable form?





-- 



Owen


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to