. 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
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
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
;
} 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
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
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;
: 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
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
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
-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
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
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
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
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
--- 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
--- 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
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
17 matches
Mail list logo