[Wellington-pm] Roundup of Monday night's meeting

Grant McLean grant at mclean.net.nz
Wed Dec 15 11:24:52 CST 2004


On Wed, 2004-12-15 at 21:39, Peter Love wrote:
> I new I'd used FindBin before -- but couldn't remember its name -- so in 
> the updated version I sent earlier today I used:
>    $slidedir = File::Basename::dirname($0);
> 
> which I think is okay.
> 
> I think the File::Spec isn't needed for unix and windows, but probably 
> for Mac (and what else?)?

Actually, it probably isn't needed for Mac since OS X and you're right,
it's not necessary on Windows.  So it is overkill unless you expect your
script to run on VMS or some more exotic platform.  But as you say, if
you copy files on to my laptop, you never know where they'll end up :-)



More information about the Wellington-pm mailing list