At 02:59 PM 12/24/97 -0800, Xah Lee wrote: >>I'm having trouble opening a file for reading. I say >>open(INFILE,'array:javed14.pl') or die "Can't open input. \t"; >>where javed14.pl is a file in a folder called array. The folder is on the >>desktop of my powerbook 5300c. > >Things on desktop also belongs to some volumn. So the correct path is >something like > >'APS600:Desktop Folder:test script.pl' Too much work, and not predictable if you should ever want to move the script to another machine. Use something like this, instead: $hostname = `pwd`; @path = split(/:/, $hostname); $hostname = $path[0]; $desktop = "$hostname:Desktop Folder"; >In general, avoid placing things on the desktop because it's not visually clear which volumn they resides (could be any). One way to find out is to use the Get Info in Finder. (but remember to add the Desktop Folder in your path.) yeah, that'd work too! <grin> --jsj > Xah, xah@best.com > http://www.best.com/~xah/Wallpaper_dir/c0_WallPaper.html > Mountain View, CA, USA > > > > >***** Want to unsubscribe from this list? >***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch > > -- Jon S. Jaques -- The Grove Hill Pages -- -- Now on the PerlRing! -- -- http://www.grovehillsys.com/scripting -- -- jjaques@grovehillsys.com -- -- Linux: Salvation from Bill, Steve and Marc! -- ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch