Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: perl one line helper

by happy.barney (Friar)
on Dec 07, 2009 at 19:35 UTC ( [id://811608]=note: print w/replies, xml ) Need Help??


in reply to Re: perl one line helper
in thread perl one line helper

did you heard about switch -p :-) ?
Little bit improved version:
perl -pe 's/(?<=TEMP_SGW_PDP_ADDR=).*$/47.104.153.163/'

Replies are listed 'Best First'.
Re^3: perl one line helper
by codeacrobat (Chaplain) on Dec 08, 2009 at 19:26 UTC
    For more information about -p see perlrun.

    print+qq(\L@{[ref\&@]}@{['@'x7^'!#2/"!4']});

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-25 06:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found