[tpm] toronto-pm Digest, Vol 19, Issue 20

Mark Fowle mfowle at navicominc.com
Fri Oct 31 08:51:47 PDT 2008


I don't use the debugger so am not able to help on that front.

 

If this is a standard script in your environment you might want to
include the -e test but instead of just dying then do a test of the
mount point - to print out better error messages.

 

 

 

________________________________

From: toronto-pm-bounces+mfowle=navicominc.com at pm.org
[mailto:toronto-pm-bounces+mfowle=navicominc.com at pm.org] On Behalf Of
Ibrahim Amin
Sent: Friday, October 31, 2008 11:46 AM
To: toronto-pm at pm.org
Subject: Re: [tpm] toronto-pm Digest, Vol 19, Issue 20

 

Thank you Mark for quick response.
However, it turns out that the shared folder was not mounted due to some
problem on the server yesterday.

By the way is there any debugger available for Perl scripts. 
I used -d option in perl but I don't know the commands like how to step
over or mark a line.

Thank you.
 

	From: "Mark Fowle" <mfowle at navicominc.com>
	To: "Ibrahim Amin" <ibrayem at gmail.com>, <toronto-pm at pm.org>
	Date: Fri, 31 Oct 2008 11:36:19 -0400
	Subject: Re: [tpm] Spreadsheet::WriteExcel and
Spreadsheet::ParseExcel

	I think it's telling you that /Server1/sambaFolder/test.xls does
not exit.

	 

	On the command line try ls /Server1/sambaFolder/test.xls

	 

	Maybe you want ./Server1/sambaFolder/test.xls

	 

	 

	Code wise you might want

	My $file = "/Server1/sambaFolder/test.xls"

	 die ("no such file $file\n") unless (-e $file ); 

	unless(defined($wb = $parser->Parse($file"))){
	    die "$!";
	}

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/toronto-pm/attachments/20081031/0fd174a1/attachment.html>


More information about the toronto-pm mailing list