Operating System - Linux
1748180 Members
3863 Online
108759 Solutions
New Discussion юеВ

Re: Replace string in place..retain original line.

 
SOLVED
Go to solution
OFC_EDM
Respected Contributor

Re: Replace string in place..retain original line.

I took out the

use warnings;

and it works
The Devil is in the detail.
James R. Ferguson
Acclaimed Contributor

Re: Replace string in place..retain original line.

Hi (again):

> But I think I have a perl issue...

> Can't locate warnings.pm in @INC (@INC contains: /usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503 ...

Yup, you REALLY NEED a newer version of Perl. The 'warnings' pragma appeared in the core of 5.8.

Perl 5.8.8 would be excellent and Perl 5.10 has been out for a few months.

In the meantime, if you don't have the 'warnings' pragma, use the '-w' switch. It is not a robust but is far, far better than nothing!

# perl -w

Regards!

...JRF...
OFC_EDM
Respected Contributor

Re: Replace string in place..retain original line.

Thanks James.

You must have got a 1000 points from me this week.

Hope I can return the favour one day!

Cheers
The Devil is in the detail.
OFC_EDM
Respected Contributor

Re: Replace string in place..retain original line.

See above for solution
The Devil is in the detail.