Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

jontk's scratchpad

by jontk (Sexton)
on Jul 02, 2004 at 06:39 UTC ( #371320=scratchpad: print w/replies, xml ) Need Help??

Assign array values to hash keys but with the same value:
@hash{ map {$_ } @array} = ($scalar) x scalar @array;

Get all pids with a keyword in args:
my $pids  = join ' ', map {/^\s*(\d+)\s+/}
            grep /$match/, `ps axk pid o pid,args`;

Newlines: reading files that were created on other platforms
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? | Other CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2021-09-19 03:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?