At 10:54 AM -0400 2001-04-29, Chris Nandor wrote:
>At the beginning of an MPW perl script, I have:
>
> Perl -Sx "{0}" {"Parameters"}; Exit {Status}
>
>However, if I try to run that script with:
>
> Perl scriptname
>
>then Perl complains. Any thoughts on what to do about it? Is there a way
>to make a script work when called by its own name AND when called by perl?
In my MPW startup script, I define 'undef' to be an alias for the Perl
invoation command. I begin my Perl scripts with "undef;". Because it's an
operator, and not a constant or variable expression, I don't get the
"useless use of ... in void context" warning.
Josh
--
Joshua Juran Metamage Software Creations
=) Tools for Wizards
[EMAIL PROTECTED]
<http://www.metamage.com/> * Creation at the highest state of the art *