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 perl 4 to be exact which is very ve

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

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

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

2006-02-22 Thread zhou jian
Check that the entry 127.0.0.1 localhost is present. How to check the this entry? I added this entry to httpd.conf and listen 127.0.0.1:80. However, I got the error message. Do you have any other ideas? I also checked. I am convinced that I didn't have that configured in httpd.conf. How could

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 trying to test > http

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

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

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

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=...

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

[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