Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

dcvr69's scratchpad

by dcvr69 (Beadle)
on Jun 01, 2004 at 17:22 UTC ( [id://358277]=scratchpad: print w/replies, xml ) Need Help??

Code I'm trying to get down to a single m// instead of two with a splice.
#!/usr/local/bin/perl open PS, '/usr/ucb/ps auxwwwe |'; while (<PS>) { if (/PB_REMOTE/) { @a = (/(\S+) .*(pts\/\d+) (.*)/); splice(@a,2,1,( $a[2] =~ /PB_REMOTE_(\S+)=(\S+)/g)); print join " ",@a,"\n"; } } close PS;
Eek! 6 years since I've logged in! :(
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-24 07:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found