in reply to Running a module?
#!/bin/sh eval "exec /opt/perl/bin/perl -I`dirname $0` -M`basename $0 .pm` -e ma +in $*" if $running_under_some_shell; package main; sub main { print "Hello from main\n"; } 1;
That seems to work for me.
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Running a module?
by bschmer (Friar) on Sep 19, 2003 at 15:11 UTC | |
by BUU (Prior) on Sep 19, 2003 at 18:27 UTC | |
by Abigail-II (Bishop) on Sep 20, 2003 at 00:12 UTC |