Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

How do I know my process id, from within perl script

by dominix (Deacon)
on Jan 03, 2004 at 10:05 UTC ( #318488=perlquestion: print w/replies, xml ) Need Help??

dominix has asked for the wisdom of the Perl Monks concerning the following question: (programs and processes)

How do I know my process id, from within perl script

Originally posted as a Categorized Question.

  • Comment on How do I know my process id, from within perl script

Replies are listed 'Best First'.
Re: How do I know my process id, from within perl script
by Anonymous Monk on Jan 03, 2004 at 12:11 UTC

    $$ or $PID

    See perlvar for details.

    (Note that $PID is only available if you use English;)

      And if you're wondering where to grab $PID from, take a look at the English module.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2021-04-18 21:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?