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

Re: [MacPerl] filehandle/subfolder

At 15:51 -0400 6/17/1999, Ingo Bitsch wrote:
>How can I have a filehandle point to a different directory than the one
>of the script itself? To a subfolder, for example?
>I tried open (IN, ">>/subfolder/file"); but it didn't work

Are you trying to do this on a Mac? If so, you need to use the Mac 
path separator (: instead of /) and will probably need to furnish a 
full path, e.g.

open (IN, ">>myHD:myFolder:mySubFolder:myNewFile");

Richard Gordon
Gordon Consulting & Design
Database Design/Scripting Languages

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org