* justin gedge [Tue, 28 Mar 2006 at 09:32 -0700]
> I know the #!/usr/bin/perl along w/ an executable file tells UNIX that 
> you need to run the /usr/bin/perl executable- is everything else in the 
> script passed to perl through STDIN, it can't be- there has to be some 
> other mechanism-

Basically, the shell sees the #! and turns around and executes:
<command after #!> <filename>
so a script called foo.pl with #! /usr/bin/perl would result in the
shell doing this:
/usr/bin/perl foo.pl

Von Fugal

Attachment: signature.asc
Description: Digital signature

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to