Re: Perl for windows Problem

2011-01-05 Thread George Worroll
On 1/6/11 1: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 ) Let me make sure I understand this. You have a Windows server, and a Linux server. Y

Re: advangtes of Perl on various languages

2011-01-05 Thread 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 businesses use Windows o

Out of memory, HTML::TableExtract

2011-01-05 Thread Jins Thomas
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 Would you be able to suggest some workarounds for this. I'm using this subroutine in another for loop. sub zParseHTMLFiles ($$) {

Re: Perl for windows Problem

2011-01-05 Thread sync
On Thu, Jan 6, 2011 at 1:25 PM, Sheppy R wrote: > *As usual... forgot to reply to all...* > > > Check out Sys::Info and the other Sys::Info based modules. These should do > what you need. > > http://search.cpan.org/search?query=sys%3A%3Ainfo&mode=all > > > > Thanks for your suggestion, but I fou

Re: advangtes of Perl on various languages

2011-01-05 Thread Octavian Rasnita
From: "Goke Aruna" Hi all, I think its time the real beauty of perl from the origin is restored. Although am not a programmer per see but I used only perl and bash for whatever I need in programming. I think all the so called disadvantages today could be ported to perl from other languages as R

Re: Perl for windows Problem

2011-01-05 Thread Sheppy R
*As usual... forgot to reply to all...* Check out Sys::Info and the other Sys::Info based modules. These should do what you need. http://search.cpan.org/search?query=sys%3A%3Ainfo&mode=all On Thu, Jan 6, 2011 at 12:16 AM, sync wrote: > Hi: > > > Could I get the windows information( like CPU

Perl for windows Problem

2011-01-05 Thread sync
Hi: Could I get the windows information( like CPU load, memory..) from my linux Client with Perl ? I also search the perl module and found this module called Win32::OLE can do it , but it can only on Windows , is there some method on my Linux Client? Thanks

Re: advangtes of Perl on various languages

2011-01-05 Thread Ramprasad Prasad
On Tue, Jan 4, 2011 at 12:42 PM, Sunita Rani Pradhan < sunita.prad...@altair.com> wrote: > Hi All > > > >I would like to know answers of following questions : > > > > - What all advantages Perl has on top of other scripting languages like > Python , shell , Java ? > > > > - What is th

RE: advangtes of Perl on various languages

2011-01-05 Thread Sunita Rani Pradhan
Hi Peter Please check my answers down . Thanks Sunita -Original Message- From: Peter Scott [mailto:pe...@psdt.com] Sent: Tuesday, January 04, 2011 1:16 PM To: beginners@perl.org Subject: Re: advangtes of Perl on various languages On Tue, 04 Jan 2011 12:42:28 +0530, Sunita Rani Pradhan

Re: advangtes of Perl on various languages

2011-01-05 Thread Goke Aruna
Hi all, I think its time the real beauty of perl from the origin is restored. Although am not a programmer per see but I used only perl and bash for whatever I need in programming. I think all the so called disadvantages today could be ported to perl from other languages as Rasnita had raised, thi

Re: removing hex characters from a file

2011-01-05 Thread Brandon McCaig
On Wed, Jan 5, 2011 at 8:52 PM, Brian Fraser wrote: > On Wed, Jan 5, 2011 at 10:50 PM, Brian Fraser wrote: >> On Wed, Jan 5, 2011 at 10:42 PM, jbiskofski wrote: >> I've made sure my string does not have a \n at the end. Ive chomped it >> and inspected it in several ways, if I open the resulting

Re: removing hex characters from a file

2011-01-05 Thread Brandon McCaig
On Wed, Jan 5, 2011 at 8:52 PM, Brian Fraser wrote: >> It's no problem - You should just CC beginners@perl.org for all replies. >> That way, your mails will get to everyone. AFAIK, as a general rule everybody should "Reply All" on a list like this so that everyone, including participants that are

Re: removing hex characters from a file

2011-01-05 Thread Brandon McCaig
On Wed, Jan 5, 2011 at 8:19 PM, jbiskofski wrote: > When I inspect this text file with a hex editor all the way at the end > it has 0A0A, this is messing me up because I need to perform some > openssl operations on the file and Im not getting the correct results. 0A is likely a linefeed (ASCII or

Re: removing hex characters from a file

2011-01-05 Thread Brian Fraser
On Wed, Jan 5, 2011 at 10:50 PM, Brian Fraser wrote: > > On Wed, Jan 5, 2011 at 10:42 PM, jbiskofski wrote: > Brian, thanks for the quick reply. I apologize if its not the correct > etiquete to reply directly to you, this is the first time Ive had to > recur to the mailing lists. > > I've made s

Re: Getting LineFeed for Excel within q quoted field

2011-01-05 Thread John Delacour
At 17:56 -0600 04/01/2011, Wagner, David wrote: I am generating an CSV and want a couple of fields to have soft returns in them. I went into Excel and added a couple of soft returns to a couple of different fields and then saved the modified file back to a CSV. If you run this script you wi

removing hex characters from a file

2011-01-05 Thread jbiskofski
Hello and happy new year to everyone. I have a text string in perl, which I wrote to a file using normal open,print,close functions. When I inspect this text file with a hex editor all the way at the end it has 0A0A, this is messing me up because I need to perform some openssl operations on the f

Re: automation frameworks

2011-01-05 Thread C.DeRykus
On Jan 5, 5:44 am, sunita.prad...@altair.com ("Sunita Rani Pradhan") wrote: > Hi All > > Could you please let me know , if anybody using any automation framework > for their automation testing or any types information about automation > framework ? > > Note: Perl scripting should be used in that fr

Re: Getting LineFeed for Excel within q quoted field

2011-01-05 Thread Parag Kalra
Ok. May be I need to understand your scenario in better way. Kindly correct me if I am wrong. So this is what my understanding is: 1. Your aim is to generate a CSV file 2. You are parsing a flat text file and substituting ^ with new line character (0a) 3. But when you are viewing the file in Exce

Re: automation frameworks

2011-01-05 Thread Parag Kalra
For what kind of testing are you looking frameworks? Frameworks may differ for Database testing, Protocol testing, Storage Testing etc I believe putting arch or functional spec of any framework in one email would be tough for anyone and also not sure if anyone would share that because of complian

Re: Getting LineFeed for Excel within q quoted field

2011-01-05 Thread Parag Kalra
It may have to do something how you are opening the file handler of CSV file. The data you seen in the csv file may depend on which encoding you have used while creating the file. Couple of questions: 1. I believe currently you are view the file on Windoze, when you view the file on Unix, do you

automation frameworks

2011-01-05 Thread Sunita Rani Pradhan
Hi All Could you please let me know , if anybody using any automation framework for their automation testing or any types information about automation framework ? Note: Perl scripting should be used in that framework . Thanks Sunita

Re: advangtes of Perl on various languages

2011-01-05 Thread Uri Guttman
> "OR" == Octavian Rasnita writes: >> memoize on fibbinacci?? hahah. OR> Yes. I have taken that Fibonacci subroutine exactly from Memoize's POD. i was being sarcastic. fib is the last function in the world you would memoize. it has a faster linear solution. the point is recursion is a l

Re: advangtes of Perl on various languages

2011-01-05 Thread Octavian Rasnita
From: "Uri Guttman" >> "OR" == Octavian Rasnita writes: OR> Perl compiles to bytecode but it doesn't save the compiled file, OR> so in non-persistent programs like FastCGI or mod_perl the OR> programs must be compiled again and again. Python saves the OR> compiled bytecode of its module

Re: need to get parent script name inside child script

2011-01-05 Thread Alan Haggai Alavi
Hi Sunita, > How can I print parent test script name inside this postrun ? `(caller)[1]` will return the the parent script's filename inside the postrun script. See `perldoc -f caller` for more information. Regards, Alan Haggai Alavi. -- The difference makes the difference -- To unsubscribe,

Getting LineFeed for Excel within q quoted field

2011-01-05 Thread Wagner, David --- Senior Programmer Analyst --- CFS
I am generating an CSV and want a couple of fields to have soft returns in them. I went into Excel and added a couple of soft returns to a couple of different fields and then saved the modified file back to a CSV. I opened in a editor and reviewed what was there. What I saw was: "xx

Re: I can't understand this function that what are parameters ,can you help me?

2011-01-05 Thread Alan Haggai Alavi
Hi Yang, > sub ok ($;$) {  } and sub is ($$;$) { } Those are subroutines with prototypes. `sub NAME(PROTO)` `sub ok ($;$)` Requires one mandatory argument and an optional one. They are separated by a semi-colon in the prototype definition. The arguments will be considered in scalar context (due

Re: need to get parent script name inside child script

2011-01-05 Thread Shlomi Fish
Hi Sunita, On Wednesday 05 Jan 2011 08:05:04 Sunita Rani Pradhan wrote: > Hi All > > > > I work as a automation engineer in organization and I am > responsible for automation test cases in Perl . > > > > My parent automated test Perl script generally has 3 sets . > > -

Re: I can't understand this function that what are parameters ,can you help me?

2011-01-05 Thread Sisyphus
- Original Message - From: "jyang" Hi all : I watch a function that is package "Test::More " ,which is that segment such as : sub ok ($;$) { } and sub is ($$;$) { } please tell me what means "($;$)" , or give me some reference manual let me know it; thank you! http://www.perlmon

Re: advangtes of Perl on various languages

2011-01-05 Thread Uri Guttman
> "OR" == Octavian Rasnita writes: OR> From: "Uri Guttman" >> "OR" == Octavian OR> Rasnita writes: OR> Disadvantages: OR> - Python is prefered by software companies, because it enforce a OR> single style of programming, not the "there is more than one >> way to do OR> it" s

Re: I can't understand this function that what are parameters ,can you help me?

2011-01-05 Thread Octavian Rasnita
From: "jyang" Hi all : I watch a function that is package "Test::More " ,which is that segment such as : sub ok ($;$) { } and sub is ($$;$) { } please tell me what means "($;$)" , or give me some reference manual let me know it; thank you! Read: perldoc perlsub If you don't really n

Re: I can't understand this function that what are parameters ,can you help me?

2011-01-05 Thread Shlomi Fish
Hi, On Wednesday 05 Jan 2011 09:02:29 jyang wrote: > Hi all : > > I watch a function that is package "Test::More " ,which is that segment > such as : > sub ok ($;$) { } and sub is ($$;$) { } > > please tell me what means "($;$)" , or give me some reference manual let > me know it; thank you!