LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] OpenOffice.org Location

[ILUG] OpenOffice.org Location

Mark Finlay sisob at eircom.net
Sat Jun 8 00:02:00 IST 2002


On Fri, 2002-06-07 at 22:31, Dave O Connor wrote:
> 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.


I think that the problem is that there is a crazy line return at the end
of $location. It looks like an underlined M in joe and a box in gedit.

it causes $location/instdb.ins to turn into
/instdb.ins/OpenOffice.org1.0 or just /inistdb.ins in either bash or
perl. Any idea how to strip this character. It should work then.


> 
> 	- DoC
> 
> -- 
> Irish Linux Users' Group: ilug at linux.ie
> http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at linux.ie
> 
-- 
Mark Finlay
"sisob's linux eXPerience"
http://sisob.dyndns.org
Registered Linux User: #243436





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell