shan_emails has asked for the wisdom of the Perl Monks concerning the following question:
Hi All,
I have the perl file and that contents are
and when i run the file i got the below error||/home/xx> cat test.pl #!/usr/bin/perl -w use strict; `perl -p -i -e 's/^(.{10})(.{382})(.*)$/$1^$2^$3/' test.txt`;
But when i run this command in terminal it gives correct output and don't show any 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.
Shall i know what will be the solution for this.||/home/xx> perl -p -i -e 's/^(.{10})(.{382})(.*)$/$1^$2^$3/' test.txt ||/home/xx>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Substitution replacement not terminated
by choroba (Cardinal) on Sep 24, 2013 at 13:06 UTC | |
|
Re: Substitution replacement not terminated
by johngg (Canon) on Sep 24, 2013 at 13:50 UTC | |
by shan_emails (Beadle) on Sep 25, 2013 at 07:14 UTC |