Re: A problem of searching through directories

2011-04-15 Thread Uri Guttman
>>>>> "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

A problem of searching through directories

2011-04-15 Thread Li Yi
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

RE: A problem while using XML::Parser::PerlSAX

2010-07-01 Thread Jason Feng
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

RE: A problem while using XML::Parser::PerlSAX

2010-07-01 Thread Jason Feng
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 > >

Re: A problem while using XML::Parser::PerlSAX

2010-06-30 Thread Jenda Krynicky
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

A problem while using XML::Parser::PerlSAX

2010-06-30 Thread Jason Feng
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

Re: A Problem Using Hashes - Thanks

2009-05-03 Thread Randal L. Schwartz
> ""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

Re: A Problem Using Hashes - Thanks

2009-05-03 Thread Thomas H. George
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

RE: A Problem Using Hashes

2009-05-02 Thread David Christensen
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

Re: A Problem Using Hashes

2009-05-02 Thread John W. Krahn
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

Re: A Problem Using Hashes

2009-05-02 Thread jaime sanmartin
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

A Problem Using Hashes

2009-05-02 Thread Thomas H. George
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

Re: A problem with apache installation http://localhost issue

2006-02-22 Thread zhou jian
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

Re: A problem with apache installation http://localhost issue

2006-02-22 Thread Hans Meier (John Doe)
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

A problem with apache installation http://localhost issue

2006-02-22 Thread zhou jian
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

print adds spaces (was: have a problem with socket)

2005-05-17 Thread Wiggins d'Anconia
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 =

have a problem with socket

2005-05-17 Thread Manuel Sanguino
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",

Re: a problem about GD

2005-05-13 Thread Frank
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

a problem about GD

2005-05-09 Thread Frank
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: ** #!/

Re: A problem about warning information.

2005-01-05 Thread Perl Hacker
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

Re: A problem about warning information.

2005-01-03 Thread Randy W. Sims
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

A problem about warning information.

2005-01-02 Thread Perl Hacker
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

Re: A problem of pattern matching

2004-10-09 Thread John W. Krahn
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

A problem of pattern matching

2004-10-09 Thread Teng Wang
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

Random Image script has a problem

2004-04-20 Thread David Gilden
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

Re: a problem about perl cross-compiling for mipsel-linux

2004-04-08 Thread Randy W. Sims
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=...

a problem about perl cross-compiling for mipsel-linux

2004-04-08 Thread wyh
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

Re: Reading from a log - still a problem

2003-12-08 Thread R. Joseph Newton
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;

RE: Reading from a log - still a problem

2003-12-07 Thread Tom Kinzer
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

RE: Reading from a log - still a problem

2003-12-07 Thread Tom Kinzer
__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

Reading from a log - still a problem

2003-12-07 Thread danield
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

Re: A problem about Tk::Tree

2002-09-05 Thread Wang Jun
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

A problem about Tk::Tree

2002-09-04 Thread Wang Jun
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

Re: Just started perl, but have run into a problem

2002-06-26 Thread drieux
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

RE: Just started perl, but have run into a problem

2002-06-26 Thread CATHY GEAR (TRUST HQ)
** 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. ***

Re: Just started perl, but have run into a problem

2002-06-25 Thread Todd Wade
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

RE: Just started perl, but have run into a problem

2002-06-25 Thread Bob Showalter
> -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

Re: Just started perl, but have run into a problem

2002-06-25 Thread David T-G
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

Just started perl, but have run into a problem

2002-06-25 Thread Robert Warning
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

Re: Having a problem with sendmail

2001-08-21 Thread Craig S Monroe
] -- 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

Re: Having a problem with sendmail

2001-08-21 Thread Maxim Berlin
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

Re: Having a problem with sendmail

2001-08-21 Thread Paul Johnson
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\

Having a problem with sendmail

2001-08-21 Thread Craig S Monroe
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

[Ying Biao Zhou ] Re: a problem

2001-06-26 Thread Chas Owens
: [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

Re: a problem

2001-06-25 Thread Xun_Dog
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

Re: a problem

2001-06-25 Thread Chas Owens
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

a problem

2001-06-25 Thread Ying Biao Zhou
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