RE: Storing filehandles(for writing) in hashes doesn't work (Re: whilereach my $variable () )

2007-01-15 Thread Thomas Bätzler
Hi, Michael Alipio <[EMAIL PROTECTED]> wrote: > Ok, seems like a "pet logs" is not a good example.:-) > > Let me revise my story: > > I have a logfile which contains different clients firewall's logs. > > Let's say the log file is: "firewall.log" > > Now each line in the logfile has a $devic

Storing filehandles(for writing) in hashes doesn't work (Re: whilereach my $variable () )

2007-01-15 Thread Michael Alipio
Hi, Ok, seems like a "pet logs" is not a good example.:-) Let me revise my story: I have a logfile which contains different clients firewall's logs. Let's say the log file is: "firewall.log" Now each line in the logfile has a $deviceid string that identifies where or which client it came from

Re: Converting to capital only one word in a line

2007-01-15 Thread Jay Savage
On 1/15/07, Jay Savage <[EMAIL PROTECTED]> wrote: On 1/15/07, Leonid Grinberg <[EMAIL PROTECTED]> wrote: > > The backslash escapes the character following it. > > Oh, that's right. Sorry. > > > Using scalar() there is redundant as the expression is already in scalar > > context. Also using "scal

Re: CPAN installs

2007-01-15 Thread Wiggins d'Anconia
Kevin Viel wrote: I am attempting to install modules on a Solaris v10 computer for which I do not have root privileges. I see in MyConfig.pm that the build directory is local: 'build_dir' => q[/home/kviel/.cpan/build] Where does it install the (built) module? Thank you, Kevin The build

Re: Converting to capital only one word in a line

2007-01-15 Thread Leonid Grinberg
The backslash escapes the character following it. Oh, that's right. Sorry. Using scalar() there is redundant as the expression is already in scalar context. Also using "scalar(@split_home) - 1" will not work correctly if the value of $[ has been changed. What exactly *is* $[? It has been co

CPAN installs

2007-01-15 Thread Kevin Viel
I am attempting to install modules on a Solaris v10 computer for which I do not have root privileges. I see in MyConfig.pm that the build directory is local: 'build_dir' => q[/home/kviel/.cpan/build] Where does it install the (built) module? Thank you, Kevin -- Kevin Viel Department of Ge

Re: How can I list down all builtin functions?(Re: Read a text file starting from the bottom)

2007-01-15 Thread John W. Krahn
Bill Jones wrote: > On 1/15/07, Michael Alipio <[EMAIL PROTECTED]> wrote: >> >> Is there a way to list down all builtin functions so that I may know >> what to "perldoc -f"? > > Here is an example (from Apache2Triad on Windows.) This doesn't list "all builtin functions", it lists all environment

Re: files download and performance

2007-01-15 Thread Rob Dixon
Tatiana Lloret Iglesias wrote: Hi all, from my java applicaation i invoke a perl script which downloads a huge quantity of files from an external database using WWW-mechanize library and my problem is that I have big CPU performance problems ... can you give me any advice to avoid this? Hi Tati

Re: removing character from string (regular expresion)

2007-01-15 Thread Rob Dixon
Sayed, Irfan (Irfan) wrote: Hi All, I have one variable $feature which contains value as "feature level: 2". Now i need to remove "feature level: " and need only 2 as a output. I mean from the value "feature level: 2" i need only 2. Basically i need to trucate/remove "feature level: ". I

Re: files download and performance

2007-01-15 Thread Tom Phoenix
On 1/15/07, Tatiana Lloret Iglesias <[EMAIL PROTECTED]> wrote: from my java applicaation i invoke a perl script which downloads a huge quantity of files from an external database using WWW-mechanize library and my problem is that I have big CPU performance problems ... can you give me any advice

Re: removing character from string (regular expresion)

2007-01-15 Thread Tom Phoenix
On 1/15/07, Sayed, Irfan (Irfan) <[EMAIL PROTECTED]> wrote: I have one variable $feature which contains value as "feature level: 2". Now i need to remove "feature level: " and need only 2 as a output. $feature = s/feature level: //g; What do you think the /g is doing? Check the documentatio

removing character from string (regular expresion)

2007-01-15 Thread Sayed, Irfan \(Irfan\)
Hi All, I have one variable $feature which contains value as "feature level: 2". Now i need to remove "feature level: " and need only 2 as a output. I mean from the value "feature level: 2" i need only 2. Basically i need to trucate/remove "feature level: ". I tried in the following way $fe

files download and performance

2007-01-15 Thread Tatiana Lloret Iglesias
Hi all, from my java applicaation i invoke a perl script which downloads a huge quantity of files from an external database using WWW-mechanize library and my problem is that I have big CPU performance problems ... can you give me any advice to avoid this? Thanks! T.

Re: Java 1.6 support to Perl

2007-01-15 Thread marcos rebelo
Of course ;) will Perl be there? I'm a Java and Perl programmer and it'd be a nice combination. Marcos On 1/12/07, Bipin_Upadhyay <[EMAIL PROTECTED]> wrote: >what do you mean by Java supporting Perl? It refers to the scripting framework support in Mustang [java 1.6], I guess. Regards, Bip

Re: perl threads/free wrong pool

2007-01-15 Thread Tom Phoenix
On 1/15/07, Alexandru Maximciuc <[EMAIL PROTECTED]> wrote: could somebody please point me to a fix for the problem: "Free to wrong pool 222db0 not 27b9158 at D:/Perl/lib/XSLoader.pm line -1" Probably, file a bug report (via perlbug) that that message isn't found in the perldiag manpage; t

perl threads/free wrong pool

2007-01-15 Thread Alexandru Maximciuc
Hello beginners, could somebody please point me to a fix for the problem: "Free to wrong pool 222db0 not 27b9158 at D:/Perl/lib/XSLoader.pm line -1" TIA -- Best regards, Alexandru mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: Video and perl

2007-01-15 Thread Herman Gerritsen
Hi there, I have been using your script to capture images from my webcam. That works nicely :) I get about 2,333 frames a second. And that is good enough for now. This means than I can get pictures from the webcam and data from my serial port. Sadly a new problem arises. I want to capture them b

Re: Read a text file starting from the bottom

2007-01-15 Thread Rob Dixon
Michael Alipio wrote: I wanted to extract the start time of a particular logfile (located at the beginning of the file, and also the end time which is located at the end of the logfile. Is there any way to do this in perl without using "head" or "tail" commands? To read a file backwards, you

Re: comparing hashes

2007-01-15 Thread Rob Dixon
xavier mas wrote: A Dissabte 13 Gener 2007 18:53, Xavier Noria va escriure: On Jan 13, 2007, at 6:29 PM, xavier mas wrote: hello list, I am trying to find if an element in one primary file (transformed to array) is included in two other different secondary files (transformed to arrays, too); t

Re: How can I list down all builtin functions?(Re: Read a text file starting from the bottom)

2007-01-15 Thread Bill Jones
On 1/15/07, Michael Alipio <[EMAIL PROTECTED]> wrote: Hi, Is there a way to list down all builtin functions so that I may know what to "perldoc -f"? Thanks. Here is an example (from Apache2Triad on Windows.) #!C:/apache2triad/perl/bin/perl.exe print "Content-type: text/html\n\n"; # # ge

Re: How can I list down all builtin functions?(Re: Read a text file starting from the bottom)

2007-01-15 Thread Ken Foskey
On Sun, 2007-01-14 at 21:54 -0800, Michael Alipio wrote: > Hi, > > Is there a way to list down all builtin functions so that I may know what to > "perldoc -f"? http://freshmeat.net/projects/podbrowser/ It is a gui interface to all the documentation. -- Ken Foskey FOSS developer -- To uns

InterOperate between a cluster and a web server

2007-01-15 Thread I BioKid
Dear All, Currently we are developing an Integrated Web Server with a dedicated cluster to support the server. I need help to set up a web application that can manage the web server and our cluster. For example if the user is submitting a huge set of data to do some processing , the program sh

RE: whilereach my $variable () ???? (sort of like foreach my $variable (@array)

2007-01-15 Thread Thomas Bätzler
Hi, Michael Alipio <[EMAIL PROTECTED]> asked: > I've been thinking about this for quite some time now. > Suppose I have a text file ("mypet.log" that contains: > > dog > pig > cat > > Then I have another text file and I want to read it line by > line and extract each line that has those contai

whilereach my $variable () ???? (sort of like foreach my $variable (@array)

2007-01-15 Thread Michael Alipio
Hi, I've been thinking about this for quite some time now. Suppose I have a text file ("mypet.log" that contains: dog pig cat Then I have another text file and I want to read it line by line and extract each line that has those contained in the first file. Sort of like running while inside whi