Tutorials Point


  Perl Home

  PERL Functions

© 2013 TutorialsPoint.COM


  Home     References     About TP     Advertising  

PERL getppid Function



Advertisements

Syntax

getppid


Definition and Usage

Returns the process ID of the parent process.

Return Value

  • Process ID of the parent process

Example

Try out following example:
#!/usr/bin/perl

$ppid = getppid();

print "Parent Process ID $ppid\n";



Advertisements


  

Advertisements