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

Re: [MacPerl] Using -e file test



At 11:48 -0800 11/5/98, Kevin Johnson wrote:
>$filepath = "HD:somefile.txt"; #place where the file is to be copied to
>if (-e, "$filepath") {
       ^
I think the comma is your problem.  It is a legal Perl operator, but it
isn't needed (or desirable!) here.

-r

Rich Morin:          rdm@cfcl.com, +1 650-873-7841, http://www.ptf.com/~rdm
Prime Time Freeware: info@ptf.com, +1 408-433-9662, http://www.ptf.com
MacPerl: http://www.ptf.com/macperl,   http://www.ptf.com/ptf/products/MPPE
MkLinux: http://www.mklinux.apple.com, http://www.ptf.com/ptf/products/MKLP



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