>>>>> "LY" == Li Yi writes:
LY> I have encounter a problem in which i need to scan over all the files
LY> within a directory tree. My script is like the following
before we get into your code, where are you learning perl? this is very
old style perl. it is p
I have encounter a problem in which i need to scan over all the files
within a directory tree. My script is like the following
#!/usr/bin/perl -w
$d = "some directory here";
chop($d);
&searchDirectory($d);
sub searchDirectory {
local($dir);
local(@lines1);
local($li
2010 18:09:01 -0500
Subject: Re: A problem while using XML::Parser::PerlSAX
From: greg.jar...@gmail.com
To: q15...@hotmail.com
Jason,
I have not worked with PerlSAX, however I played around with SAX in Java and
have an idea you can try out.
I'm not sure if you can do this in PerlSAX, but in J
1 Jul 2010 08:09:20 +0200
> Subject: Re: A problem while using XML::Parser::PerlSAX
>
> From: Jason Feng
> > I am using XML::Parser::PerlSAX
> > to parse a 300M XML file. I meet a strange issue with handler characters.
> > This handler is supposed to return
> >
From: Jason Feng
> I am using XML::Parser::PerlSAX
> to parse a 300M XML file. I meet a strange issue with handler characters.
> This handler is supposed to return
> all the contents between start markup and end markup. But sometimes it just
> returns one part of the whole contents. On the second
Hi there,
I am using XML::Parser::PerlSAX
to parse a 300M XML file. I meet a strange issue with handler characters. This
handler is supposed to return
all the contents between start markup and end markup. But sometimes it just
returns one part of the whole contents. On the second call, perh
> ""Thomas" == "Thomas H George" writes:
"Thomas> I have learned a lot and really appreciate such quick and instructive
"Thomas> responses.
And if you have overall feedback about the book, I'm always curious so I can
fold it into the next edition.
--
Randal L. Schwartz - Stonehenge Consult
Thanks for three very helpful answers. I see that my original problem
was to focus on getting the variables correct and not paying attention
to the data I was sending to them. The three answers I received went
far beyond correcting that to point out other improvements and important
programing too
Thomas H. George wrote:
> The difficulty is in the next to last line, the 'unless ...'
> statement which causes warning:
> Use of uninitialized value in string eq at chap4-take6.pl line 49.
Some debugging hints:
1. Set the output autoflush ($|) Perl variable to a true value near the
top of your
Thomas H. George wrote:
I am inching my way through INTERMEDIATE PERL and tried using hashes to
solve Chapter 4, Problem 2. I never used hashes before but my attempted
solution convinced me of their value as contrasted to the solution with
arrays.
The Problem: My solution works but with an err
Hope this helps you...
#!/usr/bin/perl -w
# formatted with perltidy
use warnings;# I always use this
use strict;
my %required_list = (
life_jacket => 'preserver',
lotion => 'sunscreen',
water => 'water_bottle',
coat=> 'jacket',
);
my %captain = (
name
I am inching my way through INTERMEDIATE PERL and tried using hashes to
solve Chapter 4, Problem 2. I never used hashes before but my attempted
solution convinced me of their value as contrasted to the solution with
arrays.
The Problem: My solution works but with an error I can't eliminate.
The
hanks,
--Paul
--- "Hans Meier (John Doe)"
<[EMAIL PROTECTED]> wrote:
> zhou jian am Mittwoch, 22. Februar 2006 22.40:
> > Hello perl fellows:
>
> Hi Paul
>
> This is the wrong list for this question (see your
> subject) but:
>
> > I encountered a
zhou jian am Mittwoch, 22. Februar 2006 22.40:
> Hello perl fellows:
Hi Paul
This is the wrong list for this question (see your subject) but:
> I encountered a problem when I was installing a perl
> module. The httpd server related module was hanging
> overnight when it was tr
Hello perl fellows:
I encountered a problem when I was installing a perl
module. The httpd server related module was hanging
overnight when it was trying to test
http://localhost:X...
Today, I tested with my httpd server installation.
I found that I can view the webpage after I started
httpd
Manuel Sanguino wrote:
> this is my script
>
> #!/usr/bin/perl -w
>
>
> use lib "/my/perl_directory/lib/perl5/site_perl/5.8.3/";
> use IO::Socket::INET6;
> $host="150.187.25.206";
> my $dat1;
> my @arreglo;
> my @arreglo2;
> my $dat2;
> my $dat3;
> my $dato;
> my $count;
> my $volt1;
> $remote =
this is my script
#!/usr/bin/perl -w
use lib "/my/perl_directory/lib/perl5/site_perl/5.8.3/";
use IO::Socket::INET6;
$host="150.187.25.206";
my $dat1;
my @arreglo;
my @arreglo2;
my $dat2;
my $dat3;
my $dato;
my $count;
my $volt1;
$remote = IO::Socket::INET6->new( Proto => "tcp",
Thanks, Zentara,
The problem was fixed.
zentara wrote:
On Tue, 10 May 2005 12:31:34 +0800, [EMAIL PROTECTED] (Frank) wrote:
Sorry if my question is stupid or too simple. I have google the answer
but got too much information
I test my GD module to check whether it can be used since there are
Sorry if my question is stupid or too simple. I have google the answer
but got too much information
I test my GD module to check whether it can be used since there are too
many errors when install GD.
the test program is copied from a website:
**
#!/
Thanks a lot.
On Mon, 03 Jan 2005 03:21:24 -0500, Randy W. Sims
<[EMAIL PROTECTED]> wrote:
> Perl Hacker wrote:
> > Below is my script,
> > When I run the script, everything is ok.
> >
> > #! /usr/bin/perl âw
> >
> > print "111\n";
> > warn "222 \n";
> >
> >
> > Problem emerges when using the fol
Perl Hacker wrote:
Below is my script,
When I run the script, everything is ok.
#! /usr/bin/perl âw
print "111\n";
warn "222 \n";
Problem emerges when using the following command line under csh,
$test.pl >& test.log
Where test.log is like:
222
111
However, what I experted is:
111
222
Do you guys ha
Below is my script,
When I run the script, everything is ok.
#! /usr/bin/perl âw
print "111\n";
warn "222 \n";
Problem emerges when using the following command line under csh,
$test.pl >& test.log
Where test.log is like:
222
111
However, what I experted is:
111
222
Do you guys have any idea
Teng Wang wrote:
I wanna match a specific pattern using grep().
My pattern has two parts:
1. exclude "." or ".." (to exclude the current and parent
directory in unix)
2. the file type is jpg.
The first pattern I am using is !/^\.\.?$/
The second is /\.jpg$/i
How to combine them together? using t
I wanna match a specific pattern using grep().
My pattern has two parts:
1. exclude "." or ".." (to exclude the current and parent
directory in unix)
2. the file type is jpg.
The first pattern I am using is !/^\.\.?$/
The second is /\.jpg$/i
How to combine them together? using two greps or a s
Greetings,
In the following script (see below) it should be pulling images from the directory:
rand_fp_imgs
The debug info looks good, but when I run the script from the URL below it pulls images
that I have sitting at the root level.
Does anyone have any idea why this might be?
Thanks,
Dave
(k
wyh wrote:
> I want to install perl to my target board with mipsel-linux.How can I cross-compile
> and install perl under i686-linux(red hat)? I tried to do cross-compiling many times
> as follows:
>
> ./Configure -Dcc=mipsel-linux-gcc -Dld=mipsel-linux-ld -Dnm=mipsel-linux-nm
> -Dlocincpth=...
I want to install perl to my target board with mipsel-linux.How can I cross-compile
and install perl under i686-linux(red hat)? I tried to do cross-compiling many times
as follows:
./Configure -Dcc=mipsel-linux-gcc -Dld=mipsel-linux-ld -Dnm=mipsel-linux-nm
-Dlocincpth=... -Dloclibpth=...
But
danield wrote:
> Hello all,
>
> I have received a solution for my problem (reading from log) from Tom
> Kinzer. The code is:
>
> #!/usr/bin/perl -w
> use strict;
> my $log_file = "/appl/log/4e4d/20031130.txt";
> open LOG, "< $log_file" or die "Could not open file $!";
> while ( ) {
> chomp;
Also, Daniel Post what the data you're scanning looks like. That should
help.
-Tom
-Original Message-
From: danield [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 07, 2003 8:43 PM
To: [EMAIL PROTECTED]
Subject: Reading from a log - still a problem
Hello all,
I have recei
__END__
-Tom Kinzer
-Original Message-
From: danield [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 07, 2003 8:43 PM
To: [EMAIL PROTECTED]
Subject: Reading from a log - still a problem
Hello all,
I have received a solution for my problem (reading from log) from Tom
Kinzer. The cod
Hello all,
I have received a solution for my problem (reading from log) from Tom
Kinzer. The code is:
#!/usr/bin/perl -w
use strict;
my $log_file = "/appl/log/4e4d/20031130.txt";
open LOG, "< $log_file" or die "Could not open file $!";
while ( ) {
chomp;
if ( /^GTotal Content:/ ) {
my
Is there anybody that can help me ?
Thank you very much!
>
> When I use following option of the TK::Tree:
> --
> Name: browseCmd
> Class: BrowseCmd
> Switch: -browsecmd
> Specifies a callback to call whenever the user browses on an entry (usually by
>si
Hello...
When I use following option of the TK::Tree:
--
Name: browseCmd
Class: BrowseCmd
Switch: -browsecmd
Specifies a callback to call whenever the user browses on an entry (usually by
single-clicking on the entry). The callback is called with one argument
On Tuesday, June 25, 2002, at 11:44 , Robert Warning wrote:
[..]
> #!/usr/bin/perl at the beginning of any of my programs it wont run. I
> get an output from the shell that says /usr/bin/perl: bad interpreter:
> Permission denied.
This sounds like your version of perl is clearly installed
somewh
**
This e-mail message has been scanned by MAILsweeper for known viruses as it left
DHCT/EDMSSA, none were present.
Your attention is drawn to the warning notice at the end of this message.
***
Robert Warning wrote:
> Hello Everyone!
Greetings
> ... My only problem is that when I put
> #!/usr/bin/perl at the beginning of any of my programs it wont run. I
> get an output from the shell that says /usr/bin/perl: bad interpreter:
> Permission denied. I could only run the script if I typed
> -Original Message-
> From: Robert Warning [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 25, 2002 2:45 PM
> To: [EMAIL PROTECTED]
> Subject: Just started perl, but have run into a problem
>
>
> Hello Everyone!
> Well after using php to help m
Robert --
...and then Robert Warning said...
%
% Hello Everyone!
Hello!
% Well after using php to help make a couple web pages I needed a
% scripting language for client side apps. Since php is best left for web
% development I decided to learn perl because php is based on perl and I
Hello Everyone!
Well after using php to help make a couple web pages I needed a
scripting language for client side apps. Since php is best left for web
development I decided to learn perl because php is based on perl and I
thought it would be a fairly easy undertaking to get a good grasp i
]
--
You will never find time for anything.
If you want time, you must make it.
Charles Buxton
- Original Message -
From: "Maxim Berlin" <[EMAIL PROTECTED]>
To: "Beginners@Perl (E-mail)" <[EMAIL PROTECTED]>
Sent: Tuesday, August 21, 2001 6:57 PM
Su
Hello Craig,
Wednesday, August 22, 2001, Craig S Monroe <[EMAIL PROTECTED]> wrote:
CSM> The script completes, but the mail is never sent.
CSM> I do not receive any errors..
CSM> #! /usr/bin/perl -w
CSM> use strict;
CSM> my $from = "mailer\@testsite\.com";
CSM> my $email = "cmonroe11\@mediaone
On Tue, Aug 21, 2001 at 06:12:25PM -0400, Craig S Monroe wrote:
> The script completes, but the mail is never sent.
> I do not receive any errors..
Have you checked your mail logs?
> #! /usr/bin/perl -w
>
> use strict;
>
> my $from = "mailer\@testsite\.com";
> my $email = "cmonroe11\@mediaone\
The script completes, but the mail is never sent.
I do not receive any errors..
#! /usr/bin/perl -w
use strict;
my $from = "mailer\@testsite\.com";
my $email = "cmonroe11\@mediaone\.net";
my $subject = "This is a test mail";
my $messagebody = "";
my $mail_program;
# Initiate the email to the
: [EMAIL PROTECTED]
> Tivoli/IBM E-mail: [EMAIL PROTECTED]
>
>
>
> Chas Owens <[EMAIL PROTECTED]> on 2001-06-25 18:28:41
>
> Please respond to Chas Owens <[EMAIL PROTECTED]>
>
> To: [EMAIL PROTECTED]
> cc:(bcc: Ying Biao Zhou/China/IBM)
> S
Send us some code Ying,
Thanks...
SunDog
At 06:04 PM 6/25/01 +0800, you wrote:
>
>What shall I do when I get the foloowing message?
>"Can't call method "getColumns" without a package or object reference at
>getColumns.pl line 3"
>
>Best regards
>
>Peter Zhou
First: go to line 3 of getColumns.pl and look for syntax errors on the
line and lines surrounding it.
Second: make certain all variables are declared using my, our, or local
(use vars "$varname" is okay too).
Third: make certain that all of the variables and subroutines are
spelled correctly in
What shall I do when I get the foloowing message?
"Can't call method "getColumns" without a package or object reference at
getColumns.pl line 3"
Best regards
Peter Zhou
___
Tivoli China Development Lab, IBM
47 matches
Mail list logo