Isn't that the easy part? (knowing the scriptname)?

print "scriptname = ".$0."\n";

C:\perl\scripts>perl thisscript.pl

scriptname = thisscript.pl


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Chris Wagner
Sent: Saturday, May 28, 2005 3:23 PM
To: [email protected]
Subject: Re: Script printing its own source code


That's just the Windows command prompt putting in a line before
returning to
the prompt.  If u did it in Bash u could get it to not do that.  But for
the
puzzle they were probably talking about making a script that printed
itself
without knowing it's own name ahead of time.





--
REMEMBER THE WORLD TRADE CENTER         ---=< WTC 911 >=--
"...ne cede males"

00000100

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to