p://abc.pl> script and abc.pm <http://abc.pm> module .
I want to understand when I execute abc.pl <http://abc.pl>
hw to get to a debug state to identify what values does it
take . Any GUI interface available to see the flow of events.
e
>> information.
>>
>> On Mon, Jul 17, 2017 at 3:48 PM Asad wrote:
>>
>>> Hi All ,
>>>
>>> I am new to perl , I a have a abc.pl script and abc.pm module
>>> . I want to understand when I execute abc.pl hw to get to a debug state
>
t; I am new to perl , I a have a abc.pl script and abc.pm module
>> . I want to understand when I execute abc.pl hw to get to a debug state
>> to identify what values does it take . Any GUI interface available to see
>> the flow of events.
>>
>>
>> --
>
, 2017 at 3:48 PM Asad wrote:
> Hi All ,
>
> I am new to perl , I a have a abc.pl script and abc.pm module .
> I want to understand when I execute abc.pl hw to get to a debug state to
> identify what values does it take . Any GUI interface available to see the
&
Hi All ,
I am new to perl , I a have a abc.pl script and abc.pm module . I
want to understand when I execute abc.pl hw to get to a debug state to
identify what values does it take . Any GUI interface available to see the
flow of events.
--
Asad Hasan
+91 9582111698
Shawn H Corey writes:
> On Mon, 02 Feb 2015 11:54:12 -0500
> Harry Putnam wrote:
>
>> Are we even talking about the same program... Perl::Critic/perlcritic?
>>
>> For me, it just blows up with piles of help information when I use
>> `-c':
>
> Use the -c option with `perl`, not `perlcritic`.
>
>
On Mon, 02 Feb 2015 11:54:12 -0500
Harry Putnam wrote:
> Are we even talking about the same program... Perl::Critic/perlcritic?
>
> For me, it just blows up with piles of help information when I use
> `-c':
Use the -c option with `perl`, not `perlcritic`.
Perl::Critic is the Perl module that y
Shawn H Corey writes:
> As Paul Johnson says, try it with the -c option first but note:
>
> -c causes Perl to check the syntax of the program and then exit
> without executing it. Actually, it will execute and "BEGIN",
> "UNITCHECK", or "CHECK" blocks and any "use" statements: these
On Sun, 01 Feb 2015 18:07:18 -0500
Harry Putnam wrote:
> Shawn H Corey writes:
>
> > On Sun, 01 Feb 2015 11:12:46 -0500
> > Harry Putnam wrote:
> >
> >> Shawn H Corey writes:
> >>
> >> > http://metacpan.org/pod/Perl::Critic
> >>
> >> Feeding my sorry script to the advertised webpage like
Shawn H Corey writes:
> On Sun, 01 Feb 2015 11:12:46 -0500
> Harry Putnam wrote:
>
>> Shawn H Corey writes:
>>
>> > http://metacpan.org/pod/Perl::Critic
>>
>> Feeding my sorry script to the advertised webpage like by using the
>> posted method of testing Perl::Critic with no installation.
>
Paul Johnson writes:
> On Sun, Feb 01, 2015 at 09:56:39AM -0500, Harry Putnam wrote:
>> Robert Wohlfarth writes:
>>
>> > On Sat, Jan 31, 2015 at 3:58 PM, Harry Putnam wrote:
>> >
>> > I have about 100 lines or so inside a File::Find:
>
> You will likely help yourself out a lot with not only th
On Sun, Feb 01, 2015 at 09:56:39AM -0500, Harry Putnam wrote:
> Robert Wohlfarth writes:
>
> > On Sat, Jan 31, 2015 at 3:58 PM, Harry Putnam wrote:
> >
> > I have about 100 lines or so inside a File::Find:
You will likely help yourself out a lot with not only this problem but
others that you do
On Sun, 01 Feb 2015 11:12:46 -0500
Harry Putnam wrote:
> Shawn H Corey writes:
>
> > http://metacpan.org/pod/Perl::Critic
>
> Feeding my sorry script to the advertised webpage like by using the
> posted method of testing Perl::Critic with no installation.
I have installed Perl::Critic on my
Shawn H Corey writes:
> http://metacpan.org/pod/Perl::Critic
Feeding my sorry script to the advertised webpage like by using the
posted method of testing Perl::Critic with no installation.
$> lwp-request -m POST http://perlcritic.com/perl/critic.pl < MyModule.pm
$> wget -q -O - --post-file
Hi Harry,
On Sat, 31 Jan 2015 16:58:48 -0500
Harry Putnam wrote:
> I've given myself a headache googling on how to debug a perl script
> that does not run.
>
> Maybe `debug' is the wrong word... I'd love to know if there is a more
> accurage one.
>
> I rea
Charles DeRykus writes:
[...]
> One good sleuthing tool is perltidy (perltidy.sourceforge.net) which is good
> at unraveling a rat's nest of errors to tease out the culprit:
>
> For instance, you'd run: perltidy badlywrittenscript.pl and might get
> an error diagnostic file that'd say something
Shawn H Corey writes:
> On Sun, 1 Feb 2015 00:10:30 -0800
> Charles DeRykus wrote:
>
>> One good sleuthing tool is perltidy (perltidy.sourceforge.net) which
>> is good at unraveling a rat's nest of errors to tease out the
>> culprit:
>
> You can also download and install with `cpan`:
[...]
Lo
Robert Wohlfarth writes:
> On Sat, Jan 31, 2015 at 3:58 PM, Harry Putnam wrote:
>
>> [snip...]
>
> I have about 100 lines or so inside a File::Find:
>>
>> find (
>> sub {
>> }, $tdir;
>>);
>> [snip...]
>> which looks like this ... snipped:
>>
>> [...]
>>
>> }
On Sun, 1 Feb 2015 14:08:24 + (UTC)
ThankGod Ebenezer wrote:
> Please can you remove me from this list?
No. But see the link below; the one marked "unsubscribe". :)
--
Don't stop where the ink does.
Shawn
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional c
Hello,
Please can you remove me from this list?
Regards,ThankGod
On Sunday, 1 February 2015, 13:16, Shawn H Corey
wrote:
On Sun, 1 Feb 2015 00:10:30 -0800
Charles DeRykus wrote:
> One good sleuthing tool is perltidy (perltidy.sourceforge.net) which
> is good at unraveling a rat's ne
On Sun, 1 Feb 2015 00:10:30 -0800
Charles DeRykus wrote:
> One good sleuthing tool is perltidy (perltidy.sourceforge.net) which
> is good at unraveling a rat's nest of errors to tease out the
> culprit:
You can also download and install with `cpan`:
cpan Perl::Tidy
Another good tool to ha
On Sat, Jan 31, 2015 at 1:58 PM, Harry Putnam wrote:
> I've given myself a headache googling on how to debug a perl script
> that does not run.
>
> Maybe `debug' is the wrong word... I'd love to know if there is a more
> accurage one.
>
> I realize this po
On Sat, Jan 31, 2015 at 3:58 PM, Harry Putnam wrote:
> [snip...]
I have about 100 lines or so inside a File::Find:
>
> find (
> sub {
> }, $tdir;
>);
> [snip...]
> which looks like this ... snipped:
>
> [...]
>
> }<== incloses an if cla
I've given myself a headache googling on how to debug a perl script
that does not run.
Maybe `debug' is the wrong word... I'd love to know if there is a more
accurage one.
I realize this post is quite a lot of yak, but hoping someone can lay
out a few steps that will narrow d
Hi John,
This is pawan.Thank for the all the inputs regarding program.John
its working.
Great john.
Thank you.
On Mon, Sep 27, 2010 at 3:32 PM, John W. Krahn wrote:
> pawan kumar wrote:
>
>> Hi guys i need your folks help:
>> Problem:I have to accept the elements into array and mult
pawan kumar wrote:
Hi guys i need your folks help:
Problem:I have to accept the elements into array and multiply each element
of array by 2 and print the resulting array.
If input of array is (2,3)
i Expect output as (4,6)
but output is (0,4,6).
why is tht zero cuming.
#!/usr/bin/perl
You s
Hi guys i need your folks help:
Problem:I have to accept the elements into array and multiply each element
of array by 2 and print the resulting array.
If input of array is (2,3)
i Expect output as (4,6)
but output is (0,4,6).
why is tht zero cuming.
#!/usr/bin/perl
print "Content-type: text/h
ch longer
> than the processing time. If I can not run the perl file
> interactively, I will have to load the data file each time I run the
> processing code. However, I can interatively run perl code, I can load
> the data file once and run the processing code multiple times in orde
file
> interactively, I will have to load the data file each time I run the
> processing code. However, I can interatively run perl code, I can load
> the data file once and run the processing code multiple times in order
> to debug the processing code.
For debugging an existing prog
On Thu, Dec 31, 2009 at 9:59 AM, Gabor Szabo wrote:
> On Thu, Dec 31, 2009 at 5:46 PM, Peng Yu wrote:
>
>> In a 'perl -d', I try the following command, but it seems that it is
>> not working as I expected. Can I input any arbitrary perl commands in
>> the 'perl -d' session as if it is running by
On Thu, Dec 31, 2009 at 5:46 PM, Peng Yu wrote:
> In a 'perl -d', I try the following command, but it seems that it is
> not working as I expected. Can I input any arbitrary perl commands in
> the 'perl -d' session as if it is running by a perl interpreter?
>
> DB<10> my $count = 10;
>
> DB<11>
On Thu, Dec 31, 2009 at 1:18 AM, Gabor Szabo wrote:
> On Thu, Dec 31, 2009 at 5:08 AM, Peng Yu wrote:
>> It seems that there are more than one choices of perl interactive
>> shells. I'm wondering which one is best or most popular.
>
> I don't think there is a *best* one. There might be one that f
On Thu, Dec 31, 2009 at 5:08 AM, Peng Yu wrote:
> It seems that there are more than one choices of perl interactive
> shells. I'm wondering which one is best or most popular.
I don't think there is a *best* one. There might be one that fits most
your situation and your experience level. A couple
I can not run the perl file
interactively, I will have to load the data file each time I run the
processing code. However, I can interatively run perl code, I can load
the data file once and run the processing code multiple times in order
to debug the processing code.
Could somebody let me know wh
On Sat, 28 Nov 2009 02:41:06 -0800, Mark_Galeck wrote:
> OK, I tried SmartComments, I must not be understanding something, I
> followed the man page exactly, but it does not seem to work:
>
> use Smart::Comments;
>
> sub foobar {
> ### at ...
> ### $_[0]
> }
>
> foobar 1;
>
>
> and when I run
OK, I tried SmartComments, I must not be understanding something, I
followed the man page exactly, but it does not seem to work:
use Smart::Comments;
sub foobar {
### at ...
### $_[0]
}
foobar 1;
and when I run this I get
### at ...
### $_[0] : undef
so both of these lines appear to not wo
Mark_Galeck wrote:
Hello, I want to write a simple debug-print subroutine, which you
could call like this:
$foobar = "foobar";
dbgPrint foobar;
You could use a source code filter to rewrite
dbgPrint $foobar;
into
dbgPrint('$foobar', $foobar);
So you sub would b
Thank you very much for the great suggestions, I appreciate!
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
2009/11/23 Mark_Galeck :
> Hello, I want to write a simple debug-print subroutine, which you
> could call like this:
>
> $foobar = "foobar";
> dbgPrint foobar;
One problem with your interface is it breaks under "use strict;". You
should always use strict and u
On Mon, Nov 23, 2009 at 8:36 AM, Mark_Galeck <
mark_galeck_spam_mag...@yahoo.com> wrote:
> Hello, I want to write a simple debug-print subroutine, which you
> could call like this:
>
> $foobar = "foobar";
> dbgPrint foobar;
>
> and it would print the variabl
Hello, I want to write a simple debug-print subroutine, which you
could call like this:
$foobar = "foobar";
dbgPrint foobar;
and it would print the variable name and value. I came up with the
following:
sub dbgPrint {
my $arg = $_[0];
my @u
will not
produce an endless loop, since "__WARN__" hooks are not called
from inside one.
cu, gabi
-Original Message-
From: childpsych.colum...@gmail.com [mailto:childpsych.colum...@gmail.com] On
Behalf Of Ming Qian
Sent: Monday, Novembe
called
from inside one.
cu, gabi
-Original Message-
From: childpsych.colum...@gmail.com [mailto:childpsych.colum...@gmail.com] On
Behalf Of Ming Qian
Sent: Monday, November 02, 2009 9:39 PM
To: Shawn H Corey
Cc: beginners@perl.org
Subject: Re: the google keyw
gt;> warn "simple warn message\n";
>> I can not find this message in the project private logs.
>> Also,
>> I can not find this message in the Apache server logs.
>> Where does this warn message go? The original author set some debug
>> information
warn "simple warn message\n";
I can not find this message in the project private logs.
Also,
I can not find this message in the Apache server logs.
Where does this warn message go? The original author set some debug
information level? Or any other redirect ??
Thanks a lot,
Bruce.
uot;;
> ..
> }
>
> I am sure that sub A was executed.
> But I can not find the warn message in log.
> The project is database website. perl + mason + html.
>
> Via the httpd.conf, I know the log location.
> So I think there maybe a switch or a deb
message in log.
The project is database website. perl + mason + html.
Via the httpd.conf, I know the log location.
So I think there maybe a switch or a debug level ?
Thank you all.
Bruce
On Mon, Nov 2, 2009 at 10:51 AM, Ming Qian wrote:
> Dear All,
>
> I am a beginner.
>
Dear All,
I am a beginner.
Recently, I receive a project in perl.
In some *.pm files,
use Carp;
.
sub A
warn "a warn message";
On Mon, 07 Jul 2008 05:16:10 -0700, Andy wrote:
> One of the Perl guys at my office. told me that I can use
> use strict;
> use warnings;
>
> but he said , he really doesn't because he wants the script to do what
> it needs to do...
And if one of "the car guys" at your office announced that he'd
- Original Message -
From: "Andy" <[EMAIL PROTECTED]>
Newsgroups: perl.beginners
To:
Sent: Tuesday, July 08, 2008 9:31 PM
Subject: Re: Debug Help Please
On Jul 7, 2:16 pm, [EMAIL PROTECTED] (Andy) wrote:
On Jul 7, 11:53 am, [EMAIL PROTECTED] (Rob Dixon) wrote:
On Jul 7, 2:16 pm, [EMAIL PROTECTED] (Andy) wrote:
> On Jul 7, 11:53 am, [EMAIL PROTECTED] (Rob Dixon) wrote:
>
>
>
> > Andy wrote:
>
> > > Funny how when you talk to different people you get different ways of
> > > looking at it.
>
> > > One of the Perl guys at my office. told me that I can use
>
On Jul 7, 4:33 pm, [EMAIL PROTECTED] (John W. Krahn) wrote:
> Andy wrote:
>
> > Funny how when you talk to different people you get different ways of
> > looking at it.
>
> Yes, that is how the world works. In Perl there is the expression
> TIMTOWTDI (There Is More Than One Way To Do It) which mea
On Jul 7, 11:53 am, [EMAIL PROTECTED] (Rob Dixon) wrote:
> Andy wrote:
>
> > Funny how when you talk to different people you get different ways of
> > looking at it.
>
> > One of the Perl guys at my office. told me that I can use
> > use strict;
> > use warnings;
>
> > but he said , he really doesn
Andy wrote:
Funny how when you talk to different people you get different ways of
looking at it.
Yes, that is how the world works. In Perl there is the expression
TIMTOWTDI (There Is More Than One Way To Do It) which means that you
will probably get different opinions on "The Right Way" to
Andy wrote:
>
> Funny how when you talk to different people you get different ways of
> looking at it.
>
> One of the Perl guys at my office. told me that I can use
> use strict;
> use warnings;
>
> but he said , he really doesn't because he wants the script to do what
> it needs to do...
Then
On Jul 5, 9:54 pm, [EMAIL PROTECTED] (John W. Krahn) wrote:
> Andy wrote:
>
> > Greets
>
> Hello,
>
> > Thanks for your earlier help, but I am still stuck.
>
> > I took your advice and I believe I put together the script as you
> > said.
>
> Except that you apparently haven't yet enabled the warnin
Andy wrote:
Greets
Hello,
Thanks for your earlier help, but I am still stuck.
I took your advice and I believe I put together the script as you
said.
Except that you apparently haven't yet enabled the warnings and strict
pragmas in your program to help you find your mistakes.
I decid
On Jul 4, 1:16 am, [EMAIL PROTECTED] (John W. Krahn) wrote:
> Andy wrote:
> > Well Disregard the above script I made changes that I think were
> > needed, but I still have no output in the .csv files
>
> You still have some of the same mistakes that were in the program the
> last time you posted it
Andy wrote:
Well Disregard the above script I made changes that I think were
needed, but I still have no output in the .csv files
You still have some of the same mistakes that were in the program the
last time you posted it. Have you read my reply to your first posting yet?
John
--
Perl is
Well Disregard the above script I made changes that I think were
needed, but I still have no output in the .csv files
#!/usr/bin/perl
#use strict;
#use warnings;
#Define LogFiles
my $dateroot="$ARGV[0]"; # Value should be 2-digit month
my $outgoing="outgoing_xferlog.$dateroot.csv"; # This
Andy wrote:
Greets
Hello,
I wrote this script to parse information from some log files. It Seems
to work , or look like it works.
In the end I get the log creation of .csv log files with no
information.
I am learning how to write this , I know there are tons of ways to do
this. But My Boss m
Greets
I wrote this script to parse information from some log files. It Seems
to work , or look like it works.
In the end I get the log creation of .csv log files with no
information.
I am learning how to write this , I know there are tons of ways to do
this. But My Boss made a decision to keep a
On Wed, 03 May 2006 10:16:05 +0200, luis wrote:
> Peter Scott wrote:
>>
>> use LWP::Debug qw(+conns);
>>
>
> Thank you, Peter. That would be great if I knew where to read the STDERR
> since I'm running my script from the command line in an out-of-t
server, in order to debug my application.
use LWP::Debug qw(+conns);
my $ua = LWP::UserAgent->new;
[snip]
Storing into a file is preferred over printing out to screen.
Internally it is hardwired to print to STDERR. You could override the
private method _log() that contains that code,
er, in order to debug my application.
use LWP::Debug qw(+conns);
> my $ua = LWP::UserAgent->new;
[snip]
> Storing into a file is preferred over printing out to screen.
Internally it is hardwired to print to STDERR. You could override the
private method _log() that contains that code, b
Hi,
the following code is part of a bigger script. I would like to know if
there is a way to print out or store into a file all the messages that
my script sends to the server, I mean, the full header and data parts
sent to the server, in order to debug my application
Hi,
the following code is part of a bigger script. I would like to know if
there is a way to print out or store into a file all the messages that
my script sends to the server, I mean, the full header and data parts
sent to the server, in order to debug my application
Stephen Mayer am Montag, 13. Februar 2006 17.25:
> Bruce,
>
> What you want to use is `perl -d file.pl `
...and especially the manuals provided with every perl installation, which is
a very valuable source for information.
Some tips:
$ perldoc perl # lists manuals.
# search if a manual exist
ger is -d. So you probably want something resembling
this command line, with the "arguments" being the ones passed to your
program, and the -d going to perl.
perl -d file.pl arguments
That will run your program under the debugger, so you should have a
debug prompt before the first execu
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Bruce,
What you want to use is `perl -d file.pl `
Steve
Bowen, Bruce wrote:
> I've read my Llama book and been out to goggle on this and while I've found
> data that suggests it is possible to step thru a script file, I've yet to
> figure out th
I've read my Llama book and been out to goggle on this and while I've found
data that suggests it is possible to step thru a script file, I've yet to
figure out the exact command structure to accomplish this. I think it's
file.pl -s arguments
but that isn't working so far as I can see. I've
On 1/19/06, Ken Perl <[EMAIL PROTECTED]> wrote:
> How to debug code in BEGIN{} block?
You can make a "permanent breakpoint" by assigning to $DB::single,
even during a BEGIN block.
$DB::single = 1 if $fred < 7;
There's more detail in the perldebug manpage. Hope
How to debug code in BEGIN{} block?
--
perl -e 'print unpack(u,"62V5N\"FME;G\!Ehttp://learn.perl.org/> <http://learn.perl.org/first-response>
[EMAIL PROTECTED] wrote:
Sorry
I've login script that I'm trying to debug. User type in user id password.
I'm getting the premature end of script headers. Therefore, I need to
find why and where this is happing.
Dan
Please don't top post :)
You can use perl's debu
[EMAIL PROTECTED] wrote:
Sorry
I've login script that I'm trying to debug. User type in user id password.
I'm getting the premature end of script headers. Therefore, I need to
find why and where this is happing.
Dan
Please don't top post, reply inline :)
You can use perl
[EMAIL PROTECTED] wrote:
Sorry
I've login script that I'm trying to debug. User type in user id password.
I'm getting the premature end of script headers. Therefore, I need to
find why and where this is happing.
Dan
Please don't top post :)
You can use perl's debu
Sorry
I've login script that I'm trying to debug. User type in user id password.
I'm getting the premature end of script headers. Therefore, I need to find
why and where this is happing.
Dan
--On 25 November 2004 08:04 -0600 "JupiterHost.Net"
<[EMAIL PROTECTED]> w
[EMAIL PROTECTED] wrote:
Hi
Hello,
How best to debug a form that requires user to input data?
What do you mean "debug a form"? Do you mean validate wah they enter?
With some programming lang it is possible to single step line by line.
Is it possible with perl?
Yes I imagine its very po
Hi
How best to debug a form that requires user to input data?
With some programming lang it is possible to single step line by line. Is
it possible with perl?
Dan
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/>
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Mike Ni) writes:
>I have at least 25 perl files written by a person who
>isn't here anymore. All these perl script files were
>programmed to serve the inquiry from the Internet via
>the web server.
>
>For me to understand the logic behind all the
Hey everyone,
Working on my first perl project::
I have at least 25 perl files written by a person who
isn't here anymore. All these perl script files were
programmed to serve the inquiry from the Internet via
the web server.
For me to understand the logic behind all these perl
files, I wan
On Wed, Feb 04, 2004 at 07:21:07PM -, pijush wrote:
> Hi!
> I am debugging a perl script on Linux OS which has a call to
> C-function from a .so file. I have tried to debug this script with
> "Perl -d" option and also "gdb perl". But when it enters in t
Hi!
I am debugging a perl script on Linux OS which has a call to C-function from a .so
file. I have tried to debug this script with "Perl -d" option and also "gdb perl". But
when it enters in the C function from perl code then I failed to debug the code. It
only shows an a
---+
Note the leading '/' is on the same line as my print statement, and making it
appear that when I display the contents of the variable, that it is in error
(since it isn't obvious or intuitive to look at the preceeding line).
Again, this is only when using Perl 5.8 and in de
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Jeff Westman) writes:
>Peter-
>
>When I tried the 'y' command I got:
>
>DB<3> y @a
>adWalker module not found - please install
>
>
>What's that about?!
There's a letter missing; it should have said
PadWalker module not found - please in
>On Wed, Jun 18, 2003 at 05:21:06PM -0700, sandip das wrote:
> >> can anybody let me know how to print out values of
> >> certain variables in "Perl Debug" mode while doing
> >> single stepping ?
> >
> >Use 'p' or 'V'.
>
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Steve Grazzini) writes:
>On Wed, Jun 18, 2003 at 05:21:06PM -0700, sandip das wrote:
>> can anybody let me know how to print out values of
>> certain variables in "Perl Debug" mode while doing
>> single
On Wed, Jun 18, 2003 at 05:21:06PM -0700, sandip das wrote:
> can anybody let me know how to print out values of
> certain variables in "Perl Debug" mode while doing
> single stepping ?
Use 'p' or 'V'.
'h' will give you the list of available
Hi,
can anybody let me know how to print out values of
certain variables in "Perl Debug" mode while doing
single stepping ?
Sandip.
__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
--
To unsubscribe, e-mail: [EMAIL
Kasi ramanathen wrote:
> hi friends,
>
> i use useragent to get some web page and store it in htm. i use
> useragent module. when i run in my windows machine i get the desired
> output. now the mecine is changed now also windows, when i run i get
> the error message
>
> "can't locate LWP/UserAgent.
hi friends,
i use useragent to get some web page and store it in htm. i use useragent module. when
i run in my windows machine i get the desired output. now the mecine is changed now
also windows, when i run i get the error message
"can't locate LWP/UserAgent.pm in @INC (@INC contains: .)"
wh
Mike Singleton wrote:
>
> Yes, I agree that it very hard to read, and next to impossible to debug. I
> appreciate everyone's comments very much. I will use your troubleshooting
> method, but the kicker is the the damned backup program write these random
> log file names
Yes, I agree that it very hard to read, and next to impossible to debug. I
appreciate everyone's comments very much. I will use your troubleshooting
method, but the kicker is the the damned backup program write these random
log file names (thus the my @files = glob('3*.log');),
David wrote:
>
> John W. Krahn wrote:
> >
> >> $current = $line[14];
> >> $jobid[$njob++] = $current;
> >> $starttime{$current} = $line[2] . " ";
> >> $starttime{$current} .= $line[3] . " ";
> >> $starttime{$current} .= $line[4] . " ";
> >> $starttime{$current} .= $line[5] . " ";
> >> $sta
your script is very hard to read. :-)
if you know where the problem might be, it's better to just post the section
of code that might be failing. posting the whole file with lots of log
lines make it hard to read.
it seems to me that you just want the log lines that contain a certain reg.
ex
On Wed, Sep 04, 2002 at 04:44:39PM -0700, david wrote:
> John W. Krahn wrote:
[snip]
> > $starttime{$current} = join ' ', @line[2 .. 6];
>
> or you could remove the need for join all together:
>
> $starttime{$current} = "@line[2..6]";
That doesn't really remove the join, it just makes it impl
John W. Krahn wrote:
>
>> $current = $line[14];
>> $jobid[$njob++] = $current;
>> $starttime{$current} = $line[2] . " ";
>> $starttime{$current} .= $line[3] . " ";
>> $starttime{$current} .= $line[4] . " ";
>> $starttime{$current} .= $line[5] . " ";
>> $starttime{$current} .= $line[6];
>
Mike Singleton wrote:
>
> This script will ultimately return the values of the regex strings for
> successful backup. I am stumped right now as how to proceed, as the script
> seems to run without error, yet return nothing.
>
> == Log File =
> 172.16.54.132 ssjobhnd Thu Jun 27 02:00:01 2
This script will ultimately return the values of the regex strings for
successful backup. I am stumped right now as how to proceed, as the script
seems to run without error, yet return nothing.
== Log File =
172.16.54.132 ssjobhnd Thu Jun 27 02:00:01 2002 SNBJH_3075J Syncsort Backup
Expre
cely formatted Perl code to recreate the data
structure. Some people use Dumper for debugging, and some use it for
persistence.
Rob
-Original Message-
From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 4:22 PM
To: Beginners (E-mail)
Subject: debug function for use
1 - 100 of 134 matches
Mail list logo