Need more helpful error messages from Perl

2014-11-19 Thread Kevin Walzer
. But why the mismatched quote error in Perl? Is there any way to get more helpful error messages, i.e. missing page? --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org

Re: Need more helpful error messages from Perl

2014-11-19 Thread Mike D
foo.ini yielded a 404 error: the page was missing. OK, that explains the unexpected EOF. But why the mismatched quote error in Perl? Is there any way to get more helpful error messages, i.e. missing page? --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http

Re: Need more helpful error messages from Perl

2014-11-19 Thread Ron Bergin
Kevin Walzer wrote: Running this code in Perl: use LWP::Simple; my $url= http://mywebsite.com/foo.ini;; my $page = get($url); produced this error: sh: -c: line 0: unexpected EOF while looking for matching `'' sh: -c: line 1: syntax error: unexpected end of file Those error messages

Capitureing error messages

2007-01-12 Thread Dukelow, Don
; } else { #do something else } close $list I'm not capitureing any error messages with the $check = $list; line. How would I change this so I can check for error messages? Don Dukelow smime.p7s Description: S/MIME cryptographic signature

Re: Capitureing error messages

2007-01-12 Thread Tom Phoenix
On 1/12/07, Dukelow, Don [EMAIL PROTECTED] wrote: How would I change this so I can check for error messages? The Perl FAQ has an entry about capturing the error output of an external command. The command perldoc -q stderr should find it for you. Hope this helps! --Tom Phoenix Stonehenge Perl

Recommended approaches for exceptions, stacktraces, error messages

2005-05-16 Thread Siegfried Heintze
Is anybody (perhaps book authors) promoting a best practices for perl CGI programming? I've been doing the use warning; use strict; use CGI; # this is from memory, but you get the idea. my $q = CGI-new; my $html = ; eval { $html .= p $data /p; $html .= div more stuff $data2 /div;

Re: Recommended approaches for exceptions, stacktraces, error messages

2005-05-16 Thread Sean Davis
: Siegfried Heintze [EMAIL PROTECTED] To: beginners-cgi@perl.org Sent: Monday, May 16, 2005 5:16 PM Subject: Recommended approaches for exceptions, stacktraces, error messages Is anybody (perhaps book authors) promoting a best practices for perl CGI programming? I've been doing the use warning; use

Re: RE : cryptic error messages in modules

2004-08-06 Thread Christopher J. Bottaro
Jose Nyimi wrote: I made a copy-paste of your above code, added the following to call f(): package main; My::Class::f(); And got the error message below: Global symbol $s requires explicit package name at try.pl line 31. Execution of try.pl aborted due to compilation errors. Which

cryptic error messages in modules

2004-08-05 Thread Christopher J. Bottaro
package My::Class; use strict; use warnings; use Class::Struct; use IO::File; struct MyStruct = { f1 = '$', f2 = '$' }; sub new { my ($class, $ifname) = @_; my $s = {}; $class = ref($class) || $class; bless ($s, $class); $s-{FILE} = new

RE : cryptic error messages in modules

2004-08-05 Thread Jose Nyimi
-Message d'origine- De : news [mailto:[EMAIL PROTECTED] De la part de Christopher J. Bottaro Envoyé : jeudi 5 août 2004 19:39 À : [EMAIL PROTECTED] Objet : cryptic error messages in modules package My::Class; use strict; use warnings; use Class::Struct; use IO::File

error messages

2002-02-02 Thread srinivas krish
Hi, I am executing a system command through a Perl script. As of now if the system command succeeds it goes to the output file and if the command fails it does not. Is there anyway of piping error messages also to the output file if the command does not execute properly? PLease let me know

Re: error messages

2002-02-02 Thread Jonathan E. Paton
Hi, I am executing a system command through a Perl script. As of now if the system command succeeds it goes to the output file and if the command fails it does not. Is there anyway of piping error messages also to the output file if the command does not execute properly? system('ls

error messages

2001-07-15 Thread F.H
Hi, I am just wondering if there is a way thru an API or others to display a perl script error messages in a Powerbuilder/VB application that calls this perl script. Any help is appreciated I.S __ Get your own FREE, personal

How can I get all error messages from this script, including system cmds.

2001-05-15 Thread Peter Lemus
Hi, folks, I need to get every possible error on this script including errors from system commands. sub DEBUG () { 1 }; # set level of debugness. open (STDERR, c:/admin/errorcms.log) or die $!; select STDERR; print File/s being copied now.\n; use file::spec; system

Re: How can I get all error messages from this script, including system cmds.

2001-05-15 Thread Paul
--- Jos I Boumans [EMAIL PROTECTED] wrote: well, you can always redirect it to a file like this; perl foo.pl /null even on a wintendo... Doesn't get STDERR, just STDOUT. Then again, I have real trouble in Win32 determining what's going to STDERR anyway = print Just another

STDERR on Win32 [was: Re: How can I get all error messages from this script, including system cmds.]

2001-05-15 Thread Paul
--- Jos I Boumans [EMAIL PROTECTED] wrote: well, you can always redirect it to a file like this; perl foo.pl /null even on a wintendo... Nope, doesn't work. Tested this way: C:\users\defaultperlx print STDOUT stdout\n; print STDERR stderr\n; ^D stderr C:\users\defaulttype x

Re: How can I get all error messages from this script, including system cmds.

2001-05-15 Thread Jos I Boumans
PROTECTED] Sent: Tuesday, May 15, 2001 7:31 PM Subject: Re: How can I get all error messages from this script, including system cmds. --- Peter Lemus [EMAIL PROTECTED] wrote: Hi, folks, I need to get every possible error on this script including errors from system commands. lol -- looks