[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Fileloop et al.



At 10.24 10/28/97, Philippe de Rochambeau wrote:
> By "access a file's name" I mean store an external file's name into a
>scalar or store the current script's name into a scalar, modify that
>scalar's contents, and change the file's name to its new value.
>
>For instance, if the current script's name ends in "fr" (which stands
>for the French version of the script), then open the French data file.
>Otherwise, open the US data file.

If you are talking about the name of the current script file, that is stored in the special variable $0.

Hope that answers all your questions ...

--
Chris Nandor               pudge@pobox.com           http://pudge.net/
%PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])
#==                    MacPerl: Power and Ease                     ==#
#==    Publishing Date: Early 1998. http://www.ptf.com/macperl/    ==#



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch