Script Structure
Beginning |
Previous |
Next
UNIX Systems
To write a Perl script, place this as the first line:
#!/usr/local/bin/perl -w
# the rest of the script (# is a comment character)
or whatever the correct path to your Perl executable is. If your
UNIX does not support "#!", instead use:
#!/bin/sh -- # perl, to stop looping
eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
if 0;
Windows NT/95 Systems
You can use this wrapper around your code:
@rem = '-*- Perl -*-';
@rem = '
@echo off
perl -w -S %0.bat %1 %2 %3 %4 %5 %6 %7 %8 %9
goto endofperl
@rem ';
# the rest of the script
__END__
:endofperl
Make sure "perl.exe" is in your path and the file's
extension is ".bat".
Beginning |
Previous |
Next
Last Modified: $Date: 1997/05/02 07:17:50 $