From: Dave O Connor (doc at domain redbrick.dcu.ie)
Date: Fri 07 Jun 2002 - 22:31:54 IST
Mark Finlay said on Thu, Jun 06, 2002 at 09:39:20PM +0100:
> open(SVERSION, $ENV{'HOME'} . "/.sversionrc") or die "Cannot open
> ~/.sversionrc";
>
> open(SVERSION, $location . "/instdb.ins") or die "Cannot open
> instdb.ins";
>
> but when I run it I get
>
> Cannot open instdb.ins at findlocation.pl line 19.
>
> I need to suck a variable out of $location/instdb.ins
> but on account of not knowing perl I seem to have bothched
> up the open() function
Make sure $location/instdb.ins exists, and you can read it.
Also try changing the arguemnt to die to something like:
die "Cannot OPen $location/instdb.ins: $!";
$! returns the last OS error in text form, so that'll be a little more
helpful.
- DoC
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:17:09 GMT