- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Replace string in place..retain original line.
Operating System - Linux
1748180
Members
3863
Online
108759
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2008 05:21 AM
тАО04-22-2008 05:21 AM
Re: Replace string in place..retain original line.
I took out the
use warnings;
and it works
use warnings;
and it works
The Devil is in the detail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2008 05:36 AM
тАО04-22-2008 05:36 AM
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...
> 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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2008 06:05 AM
тАО04-22-2008 06:05 AM
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
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2008 06:05 AM
тАО04-22-2008 06:05 AM
Re: Replace string in place..retain original line.
See above for solution
The Devil is in the detail.
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP