Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Perl Command-Line Arguments (cf.ac.uk)
1 point by 0xbadcafebee on Aug 17, 2012 | hide | past | favorite | 1 comment


My favorite, that I didn't even know about until today:

  -x
     This option will let you extract a Perl script from the middle 
     of a file. This feature comes in handy when someone has sent 
     you a script via e-mail. Perl will scan the input file looking 
     for a #! line that contains the word perl. When it is found, 
     it will execute the script until the __END__ token is found. 
     If a directory name is specified after the -x option, Perl 
     will switch to that directory before executing the script.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: