Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: deleting a non-numeric scalar within array

by poolpi (Hermit)
on Dec 03, 2010 at 12:28 UTC ( #875157=note: print w/ replies, xml ) Need Help??


in reply to deleting a non-numeric scalar within array

You could do this with in-place edition:

#perl -i.bak -pe 's/1\.1\.1\.1 hostname FQDN\n//g' /etc/hosts


hth,
PooLpi

'Ebry haffa hoe hab im tik a bush'. Jamaican proverb


Comment on Re: deleting a non-numeric scalar within array
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://875157]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2014-10-25 05:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (142 votes), past polls