<filename.txt> will be available in $ARGV[0] in your script read http://japh.nu/index.cgi?base=perlvartut if you want to learn some more about it
hth Jos ----- Original Message ----- From: "phumes1" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 22, 2001 3:54 PM Subject: Re: passing filename to script > > I have the following script (load.pl) which loads UltraEdit. How can I pass > a filename to the script like: > > #!/usr/local/bin/perl > > { > print '%Loading UltraEdit...',"\n"; > chdir "D:\ultraedit"; > system "uedit32.exe"; > > exit 0; > } > > > C:>load.pl <filename.txt> > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]