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

Re: [MacPerl] &MacPerl'GetFileInfo() and directory switching



At 02.42 12/15/97, jwatson@mail.fairfax.com.au wrote:
>This is my first perl script that is
>more than half a dozen lines long, and I
>am stuck!

A few things:

1.)  You should not use the single-tick syntax for package names, it has
been deprecated.  Use "MacPerl::GetFileInfo" instead of
"MacPerl'GetFileInfo".

2.)  MacPerl::GetFileInfo is somewhat broken, to be fixed in the upcoming
release of MacPerl.  Until then, if <$! = 0> before each call to that
function, you should be fine.

3.)  You would be better off with Mac::StandardFile than with
StandardFile.pl.  It is documented well (I think!) in my chapter on Toolbox
Modules at http://www.ptf.com/macperl/ptf_book/draft.html.  Feel free to
download the chapter for review and then feedback on it.

--
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