Re: Out of memory, HTML::TableExtract

2011-01-06 Thread C.DeRykus
On Jan 5, 10:56 pm, jinstho...@gmail.com (Jins Thomas) wrote: > Hi experts, > > Have you ever experienced Out of memory problem while using > HTML::TableExtract. I'm having little large html files, still i didn't > expect this to happen > If the html files are really big, HTML::TableExtract might

Re: Out of memory, HTML::TableExtract

2011-01-06 Thread Parag Kalra
> Maybe because you aren't closing each file after you have done your thing > and it remains in memory? Well I may be wrong but I think since he is using same file handler for each file, new instance is over writing the older one so all files cannot remain opened and hence cannot be in memory. I

Re: Function to print Object properties

2011-01-06 Thread Peter Scott
On Thu, 06 Jan 2011 21:31:11 -0500, Shawn H Corey wrote: > On 11-01-06 09:25 PM, Parag Kalra wrote: >> For example if I have a package say Foo::Bar. Now assume that there is >> a object called $fob and pretend that I don't know that its an instance >> of Foo::Bar > > print ref( $fob ), "\n"; > >

Re: Out of memory, HTML::TableExtract

2011-01-06 Thread Robert
Maybe because you aren't closing each file after you have done your thing and it remains in memory? On 2011-01-06 02:26:13 -0500, Jins Thomas said: --0016364270585953cf049927ffd4 Content-Type: text/plain; charset=ISO-8859-1 Hi experts, Have you ever experienced Out of memory problem whi

Re: Function to print Object properties

2011-01-06 Thread Parag Kalra
Awesome. Thanks Alan and Shawn Cheers, Parag On Thu, Jan 6, 2011 at 6:52 PM, Alan Haggai Alavi wrote: > Hi Parag, > > On Friday 07 January 2011 07:55:38 Parag Kalra wrote: >> Anyways I want to know is there any function or a way that would >> reveal all the properties of the object. > > Intr

Re: Function to print Object properties

2011-01-06 Thread Shawn H Corey
On 11-01-06 09:46 PM, Parag Kalra wrote: Thanks it worked.:) Cheers, Parag You can also print the whole thing out with Data::Dumper use Data::Dumper; if( ref( $fob ) ){ print '$fob ', Dumper $fob; } -- Just my 0.0002 million dollars worth, Shawn Confusion is the first step of under

Re: Function to print Object properties

2011-01-06 Thread Parag Kalra
Thanks it worked. :) Cheers, Parag On Thu, Jan 6, 2011 at 6:31 PM, Shawn H Corey wrote: > On 11-01-06 09:25 PM, Parag Kalra wrote: >> >> For example if I have a package say Foo::Bar. Now assume that there is >> a object called $fob and pretend that I don't know that its an >> instance of Foo::

Re: Function to print Object properties

2011-01-06 Thread Shawn H Corey
On 11-01-06 09:25 PM, Parag Kalra wrote: For example if I have a package say Foo::Bar. Now assume that there is a object called $fob and pretend that I don't know that its an instance of Foo::Bar print ref( $fob ), "\n"; See `perldoc -f ref`. -- Just my 0.0002 million dollars worth, Sh

Function to print Object properties

2011-01-06 Thread Parag Kalra
Hi, This question is related to OOPs in Perl and I am learning and enjoying it gradually. Anyways I want to know is there any function or a way that would reveal all the properties of the object. For example if I have a package say Foo::Bar. Now assume that there is a object called $fob and pret

Re: Getting LineFeed for Excel within q quoted field

2011-01-06 Thread Rob Dixon
David Wagner wrote: From: Rob Dixon [mailto:rob.di...@gmx.com] At 11:55 -0600 06/01/2011, David Wagner wrote: For something that should have been relatively easy, this has been a real pain in getting to work as I would have expected it to. ...So to get things in what I believe was a correct se

Re: Getting LineFeed for Excel within q quoted field

2011-01-06 Thread Rob Dixon
At 11:55 -0600 06/01/2011, David Wagner wrote: For something that should have been relatively easy, this has been a real pain in getting to work as I would have expected it to. ...So to get things in what I believe was a correct setup and using the binmode which was giving me what I thought Exce

Re: problems hashing

2011-01-06 Thread John Delacour
At 11:25 -0700 06/01/2011, Chris Stinemetz wrote: I am having problems using hash function. I would like to only extract 4 columns of data from a text file that is ; delimited. Below is my code along with the errors I am receiving. Any help is appreciated. 1. #!/usr/bin/perl 2.

Re: problems hashing

2011-01-06 Thread Michiel Beijen
Hi Chris, On Thu, Jan 6, 2011 at 7:25 PM, Chris Stinemetz wrote: > I am having problems using hash function. I would like to only extract 4 > columns of data from a text file that is ; delimited. > > Below is my code along with the errors I am receiving. Any help is > appreciated. Actually I w

Re: problems hashing

2011-01-06 Thread John W. Krahn
Chris Stinemetz wrote: Hello all, Hello, I am having problems using hash function. I would like to only extract 4 columns of data from a text file that is ; delimited. Below is my code along with the errors I am receiving. Any help is appreciated. -Chris 1. #!/usr/bin/perl 2.

Re: problems hashing

2011-01-06 Thread jbiskofski
#!/usr/local/bin/perl use strict; while (<>) { chomp; my @values = split(/;/); my ($mtype,$cell,$sector,$rlptxat) = ($values[5],$values[31],$values[32],$values[44]); print "$mtype - $cell - $sector - $rlptxat\n"; } i dont know if that is over simplified, you may h

Re: problems hashing

2011-01-06 Thread Robert Wohlfarth
On Thu, Jan 6, 2011 at 12:25 PM, Chris Stinemetz < cstinem...@cricketcommunications.com> wrote: > 11. %fieldMap = split(/;/, $data); > > > 12. foreach my $data (keys %fieldMap) { > > 13. print "$fieldMap{$data}\t"; > > 14. } > > Odd number of elements in hash assignment at./beta2.pl line 1

RE: Getting LineFeed for Excel within q quoted field

2011-01-06 Thread John Delacour
At 11:55 -0600 06/01/2011, David Waner wrote: >From: John Delacour [mailto:johndelac...@gmail.com] >#!/usr/bin/perl use strict; my $csv="temp.csv"; open CSV, ">$csv"; >print CSV qq~1,2,"3\n4\n5"\n6,7,8~; For something that should have been relatively easy, this has been a real pain in g

problems hashing

2011-01-06 Thread Chris Stinemetz
Hello all, I am having problems using hash function. I would like to only extract 4 columns of data from a text file that is ; delimited. Below is my code along with the errors I am receiving. Any help is appreciated. -Chris 1. #!/usr/bin/perl 2. use warnings; 3. use stri

Re: removing hex characters from a file

2011-01-06 Thread Brian Fraser
If you still care to debug this, one more experiment: Try print "[$\]"; http://perldoc.perl.org/perlvar.html#$\ Brian.

Re: advangtes of Perl on various languages

2011-01-06 Thread Octavian Rasnita
From: "Brandon McCaig" > On Thu, Jan 6, 2011 at 8:45 AM, Octavian Rasnita wrote: >> If Perl is intimidating I think that this is a disadvantage. > > Some people are easily intimidated. It was that kind of thinking that > unleashed /Visual Basic/ upon the world. :( :-) Very true. But not the

Re: removing hex characters from a file

2011-01-06 Thread jbiskofski
Hey everyone, Im sorry, I tried and tried to reproduce this with a clear example without pasting a bunch of code and I couldnt find it. This is an application running under mod_perl2 and when I open,print,close a string without any newlines at the end, the resulting file ends up having a 0A at th

Re: advangtes of Perl on various languages

2011-01-06 Thread Brandon McCaig
On Thu, Jan 6, 2011 at 8:45 AM, Octavian Rasnita wrote: > If Perl is intimidating I think that this is a disadvantage. Some people are easily intimidated. It was that kind of thinking that unleashed /Visual Basic/ upon the world. :( -- Brandon McCaig V zrna gur orfg

Re: advangtes of Perl on various languages

2011-01-06 Thread Peter Scott
On Thu, 06 Jan 2011 09:32:31 +0530, Sunita Rani Pradhan wrote: This is a good question .I am asking for my own career growth . I > work as a automation engineer . I used to be in manual testing and moved > to automation just been 1.5yr. What does an automation engineer do, and what industry a

Re: advangtes of Perl on various languages

2011-01-06 Thread Octavian Rasnita
From: "Brandon McCaig" On Thu, Jan 6, 2011 at 1:33 AM, Octavian Rasnita wrote: the Perl community is not so interested in Windows OS, although it is the most used OS and the OS used by the most businesses. That's sort of flame bait. :\ I'll try not to preach. :P It /might/ be true that more

Re: Perl for windows Problem

2011-01-06 Thread sync
On Thu, Jan 6, 2011 at 6:49 PM, Jeff Pang wrote: > > > > That's to say , is there some methods that I can use to write some perl > > scripts on Linux Server > > to check the Windows Server System information ( CPU load , Memory and > so > > on )? > > > > Net::SNMP is your friend. > Yeah ! Than

Re: Perl for windows Problem

2011-01-06 Thread Jeff Pang
> > That's  to say , is there some methods that I can use to write some perl > scripts on Linux Server > to check the Windows Server  System information ( CPU load , Memory and so > on )? > Net::SNMP is your friend. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands

Re: Getting LineFeed for Excel within q quoted field

2011-01-06 Thread Parag Kalra
>        So how do I tel>So how do I tell Perl to leave alone on 0a. Do > I have to play with $? Or ??? >Making no sense to me at this point...l Perl to leave alone on 0a. Do > I have to play with $? Or ??? >        Making no sense to me at this point... use strict; use warnings

RE: Getting LineFeed for Excel within q quoted field

2011-01-06 Thread Wagner, David --- Senior Programmer Analyst --- CFS
>-Original Message- >From: Parag Kalra [mailto:paragka...@gmail.com] >Sent: Wednesday, January 05, 2011 12:13 >To: Wagner, David --- Senior Programmer Analyst --- CFS >Cc: Perl Beginners >Subject: Re: Getting LineFeed for Excel within q quoted field > >It may have to do something how you a

RE: Getting LineFeed for Excel within q quoted field

2011-01-06 Thread Wagner, David --- Senior Programmer Analyst --- CFS
Original Message- >From: Parag Kalra [mailto:paragka...@gmail.com] >Sent: Wednesday, January 05, 2011 16:42 >To: Wagner, David --- Senior Programmer Analyst --- CFS >Cc: Perl Beginners >Subject: Re: Getting LineFeed for Excel within q quoted field > >Ok. > >May be I need to understand your scen

Re: Perl for windows Problem

2011-01-06 Thread Michiel Beijen
On Thu, Jan 6, 2011 at 7:46 AM, sync wrote: > That's  to say , is there some methods that I can use to write some perl > scripts on Linux Server > to check the Windows Server  System information ( CPU load , Memory and so > on )? I think the best would be to activate WMI on the Windows boxes and