Some Perl Special Variables Some Global Special Variables 14 of 28 : [PREV] [NEXT]

$0 ($PROGRAM_NAME)

  • Contains the name of the file containing the Perl script being executed.
  • A hangover from shell scripting
print "Program name is $0.\n";

© 2004 Barbie barbie@missbarbell.co.uk Home http://birmingham.pm.org/