Hi All,
I have the perl file and that contents are
||/home/xx> cat test.pl
#!/usr/bin/perl -w
use strict;
`perl -p -i -e 's/^(.{10})(.{382})(.*)$/$1^$2^$3/' test.txt`;
and when i run the file i got the below error
||/home/xx> perl test.pl
Use of uninitialized value in concatenation (.) or string at test.pl l
+ine 3.
Use of uninitialized value in concatenation (.) or string at test.pl l
+ine 3.
Use of uninitialized value in concatenation (.) or string at test.pl l
+ine 3.
Substitution replacement not terminated at -e line 2.
But when i run this command in terminal it gives correct output and don't show any error
||/home/xx> perl -p -i -e 's/^(.{10})(.{382})(.*)$/$1^$2^$3/' test.txt
||/home/xx>
Shall i know what will be the solution for this.
Thanks in advance,
Shanmugam