Need information for Tcl/tk

2006-05-19 Thread hridyesh pant
Hi, I want to start Tcl/tk,Can anybody guide me good book or link for the beginner. Thanks Hridyesh -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

RE: Any CPAN module similar to Winrunner

2006-05-19 Thread Nagasamudram, Prasanna Kumar
Hi Dhanashri If you are looking for GUI test automation.you can try Win32::GUITest. Thanks Prasanna -Original Message- From: Shalaka [mailto:[EMAIL PROTECTED] Sent: Thursday, May 18, 2006 6:56 PM To: beginners@perl.org Subject: Any CPAN module similar to Winrunner Hi List! I'm

Module installation problem Set::Array and Want.pm

2006-05-19 Thread Graeme McLaren
Hi all, I tried installing Set::Array and I got the following error: # Failed test 'use Set::Array;' # in t/test.t at line 7. # Tried to use 'Set::Array'. # Error: Can't locate Want.pm in @INC (@INC contains: /root/.cpan/build/Set-Array-0.14/blib/lib

RE: Print

2006-05-19 Thread Nagasamudram, Prasanna Kumar
Hi Kaushal The only alternative I can think of is to convert your chm file to pdf or rtf and then attempt a print. You can get the convert from http://www.freedownloadscenter.com/Best/free-chm-to-pdf.html Also can you please send me the chm file? It can be quite handy to me. Thanks

How to check the file from CGI FORM

2006-05-19 Thread Anish Kumar K.
HI I uploaded a file from the HTML from through input type=file... and in the POST operation I am calling the perl file and in that I try reading the file with the CGI variable and then write it into one location. If I do any changes in the text box in the HTML, say I changed the file name

Stealing vs buying Was: Print

2006-05-19 Thread Bjørge Solli
HOY! People spend years writing those books - buy it! *annoyed* On Friday 19 May 2006 11:03, Nagasamudram, Prasanna Kumar wrote: Hi Kaushal The only alternative I can think of is to convert your chm file to pdf or rtf and then attempt a print. You can get the convert from

RE: Print

2006-05-19 Thread Saboo, Nandakishore
Hi Hi Kaushal The only alternative I can think of is to convert your chm file to pdf or rtf and then attempt a print. You can get the convert from http://www.freedownloadscenter.com/Best/free-chm-to-pdf.html Also can you please send me the chm file? It can be quite handy to me. I think

Howto include string in system call

2006-05-19 Thread Wijaya Edward
Hi all, How do you pass a string inside an under system call. I tried to pass a string like this under EMAIL option: system(perl mycode.pl -email 'test_string' -type $sometype -unit $some_unit); or system(perl mycode.pl -email $receipt_email -type $sometype -unit $some_unit); But while

RE: Howto include string in system call

2006-05-19 Thread Saboo, Nandakishore
Wijaya Edward wrote on [Friday, May 19, 2006 3:56 PM] Hi Edward, Hi all, How do you pass a string inside an under system call. I tried to pass a string like this under EMAIL option: system(perl mycode.pl -email 'test_string' -type $sometype -unit $some_unit); or system(perl mycode.pl

Help: Need PPT document for Perl Training

2006-05-19 Thread Japerlh
I am going to deliver a training about Perl programming to a group of persons. I was wondering where I can get some PPTs to help to promote the training. -- Besh wishes, Japerlh -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: RE: Howto include string in system call

2006-05-19 Thread Wijaya Edward
Hi Nanda, Thanks for your reply. system(perl mycode.pl -email \$receipt_email\ -type $sometype -unit $some_unit); But it still cannot work. What I have in mycode.pl looks like this: __BEGIN__ use strict; use Data::Dumper; use Getopt::Long; print Dumper [EMAIL PROTECTED]

RE: RE: Howto include string in system call

2006-05-19 Thread Saboo, Nandakishore
Hi Edward, __BEGIN__ use Acme::Spork; my $req_id = spork( sub { system(perl compute_price.pl -eml \$uemail\ -type $ct -unit $nu); } ) or die qq {Could not fork for spork: $!}; __END__ Any idea? What's this Acme::Spork package about(i have no idea) and it is not installed on my system.

could not find ParserDetails.ini in D:/usr/site/lib/XML/SAX

2006-05-19 Thread Octavian Rasnita
Hi, When using some modules for parsing RSS files or when using the PPM utility, sometimes appears the following warning: could not find ParserDetails.ini in D:/usr/site/lib/XML/SAX What can I do for avoiding that warning? Thank you. Teddy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Query

2006-05-19 Thread Kaushal Shriyan
Hi All #!/usr/bin/perl -w whats -w flag stands for and what is its use, I mean How do i use it and any other flags are also there, Please specify Thanks Kaushal -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

RE: Query

2006-05-19 Thread Nagasamudram, Prasanna Kumar
Hi Kaushal -w is to enable warning messages. Try running the following code to see the difference with and w/o -w. x.pl - $str=a+2; print $str,\n; - $ perl x.pl 2 $ perl -w x.pl Unquoted string a may clash with future reserved word at p2.pl line

Grep a variable

2006-05-19 Thread Umesh T G
Hi List, I am trying to grep a variable from a scalar value. Here is the example below. $var = mydisk; $line = mydisk is bad; if (grep/\$var/,$line) { print disk is not bad; } This does not seems to work. Please help me out in figuring out this. TIA, Cheers, Umesh -- To unsubscribe,

RE: Grep a variable

2006-05-19 Thread Ryan Frantz
-Original Message- From: Umesh T G [mailto:[EMAIL PROTECTED] Sent: Friday, May 19, 2006 8:54 AM To: Perl Beginners Subject: Grep a variable Hi List, I am trying to grep a variable from a scalar value. Here is the example below. $var = mydisk; $line = mydisk is bad; if

Re: Query

2006-05-19 Thread Mr. Shawn H. Corey
On Fri, 2006-19-05 at 17:48 +0530, Kaushal Shriyan wrote: Hi All #!/usr/bin/perl -w whats -w flag stands for and what is its use, I mean How do i use it and any other flags are also there, Please specify The flags can be found in `perldoc perlrun`. -- __END__ Just my 0.0002 million

Re: Grep a variable

2006-05-19 Thread Ricardo SIGNES
* Umesh T G [EMAIL PROTECTED] [2006-05-19T08:54:17] I am trying to grep a variable from a scalar value. Here is the example below. $var = mydisk; $line = mydisk is bad; if (grep/\$var/,$line) { print disk is not bad; } The simplest answer, already given, is that you should lose the

Re: Howto include string in system call

2006-05-19 Thread Dr.Ruud
Wijaya Edward schreef: I tried [...] system( perl mycode.pl -email 'test_string' -type $sometype -unit $some_unit ) ; But while debugging for mycode.pl I can't see the value for [-email], while I can see the value for [-type] Maybe

Re: Query

2006-05-19 Thread Dr.Ruud
Kaushal Shriyan schreef: #!/usr/bin/perl -w whats -w flag stands for and what is its use, I mean How do i use it and any other flags are also there, Please specify The Subject of your message doesn't cover your question, that is about the switches of the perl executable. From the prompt,

Re: Howto include string in system call

2006-05-19 Thread JupiterHost.Net
Wijaya Edward wrote: Hi all, How do you pass a string inside an under system call. Just like you're doing below, unless I'm misunderstanding the question I tried to pass a string like this under EMAIL option: system(perl mycode.pl -email 'test_string' -type $sometype -unit

Re: Howto include string in system call

2006-05-19 Thread JupiterHost.Net
And my actuall system call is this:: Ah that is what you failed to mention :) __BEGIN__ use Acme::Spork; my $req_id = spork( sub { system(perl compute_price.pl -eml \$uemail\ -type $ct -unit $nu); } ) or die qq {Could not fork for spork: $!}; __END__ Any idea? Yep, as per the docs,

Re: Howto include string in system call

2006-05-19 Thread JupiterHost.Net
Saboo, Nandakishore wrote: Hi Edward, __BEGIN__ use Acme::Spork; my $req_id = spork( sub { system(perl compute_price.pl -eml \$uemail\ -type $ct -unit $nu); } ) or die qq {Could not fork for spork: $!}; __END__ Any idea? What's this Acme::Spork package about(i have no idea) and

Re: Module installation problem Set::Array and Want.pm

2006-05-19 Thread Michael Goldshteyn
I would try to do the make manually for Want.pm and see what errors crop up... Graeme McLaren [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, I tried installing Set::Array and I got the following error: # Failed test 'use Set::Array;' # in t/test.t at line 7. #

Re: Better way to add one line at top of every file(one liner)

2006-05-19 Thread David Romano
Hi Ankur, On 5/18/06, Ankur Gupta wrote: perl -0777 -p -i -e 'print abcdefgh\n' *.ext or perl -0777 -p -i -e 's#^#abcdefgh\n#' *.ext or ??? I did this: perl -p -i -e '$_ = ($ARGV ne $f $f = $ARGV) ? NEW FIRST LINE\n$_ : $_' *.ext I needed to check if I'm on the first line of a file and only

Re: Need information for Tcl/tk

2006-05-19 Thread David Romano
Hi Hridyesh, On 5/18/06, hridyesh pant [EMAIL PROTECTED] wrote: Hi, I want to start Tcl/tk,Can anybody guide me good book or link for the beginner. Googling tk perl came up with these: http://www.perl.com/pub/a/2001/03/gui.html http://www.perl.com/pub/a/1999/10/perltk/index.html

Log Parsing using split

2006-05-19 Thread Jeff Stout
I need help in extracting specific data from log files. The log file has 51 fields I only need 11 fields from that file. I need to open to a new file output with only the data from the 11 fields. The new file will be specific to the customers. I have 10-20 customers in each log file I need to

Re: Howto include string in system call

2006-05-19 Thread Wijaya Edward
Dear Jupiter, Thanks so much for the reply. However... you are not passing the variabels to it proeprly. (an oi, why is that written so incredibly hard to read ???) sorry about that. So you see it has nothgin to do with using system it has to so with calling a funtion as its

Re: could not find ParserDetails.ini in D:/usr/site/lib/XML/SAX

2006-05-19 Thread David Romano
Hi Octavian, On 5/19/06, Octavian Rasnita wrote: When using some modules for parsing RSS files or when using the PPM utility, sometimes appears the following warning: could not find ParserDetails.ini in D:/usr/site/lib/XML/SAX What can I do for avoiding that warning? You should search the web

Re: Better way to add one line at top of every file(one liner)

2006-05-19 Thread Luke Bakken
On 5/19/06, David Romano [EMAIL PROTECTED] wrote: Hi Ankur, On 5/18/06, Ankur Gupta wrote: perl -0777 -p -i -e 'print abcdefgh\n' *.ext or perl -0777 -p -i -e 's#^#abcdefgh\n#' *.ext or ??? I did this: perl -p -i -e '$_ = ($ARGV ne $f $f = $ARGV) ? NEW FIRST LINE\n$_ : $_' *.ext This'll

Re: Howto include string in system call

2006-05-19 Thread JupiterHost.Net
Wijaya Edward wrote: Dear Jupiter, Thanks so much for the reply. However... you are not passing the variabels to it proeprly. (an oi, why is that written so incredibly hard to read ???) sorry about that. So you see it has nothgin to do with using system it has to so with calling

RE: Help: Need PPT document for Perl Training

2006-05-19 Thread Timothy Johnson
1) Start--Run 2) In the text-box provided, type Powerpnt.exe 3) Click Ok. 4) In the application window that appears, click File--New HTH! -Original Message- From: Japerlh [mailto:[EMAIL PROTECTED] Sent: Friday, May 19, 2006 3:47 AM To: beginners@perl.org Subject: Help: Need PPT

Re: Grep a variable

2006-05-19 Thread Jay Savage
On 5/19/06, Umesh T G [EMAIL PROTECTED] wrote: Hi List, I am trying to grep a variable from a scalar value. Here is the example below. $var = mydisk; $line = mydisk is bad; if (grep/\$var/,$line) { print disk is not bad; } [snip] TIA, Cheers, Umesh As others have pointed out, get

Re: Stealing vs buying Was: Print

2006-05-19 Thread Kevin Viel
Bjørge Solli wrote: HOY! People spend years writing those books - buy it! Seconded. Under US law, you may copy one article or one *chapter* under certain circumstances. As a hint, I got several new O'Reilly texts in mint condition used at very affordable prices as used books on

Re: Stealing vs buying Was: Print

2006-05-19 Thread Rance Hall
Kevin Viel wrote: Bjørge Solli wrote: HOY! People spend years writing those books - buy it! Seconded. Under US law, you may copy one article or one *chapter* under certain circumstances. As a hint, I got several new O'Reilly texts in mint condition used at very affordable prices as

reg exp speed?

2006-05-19 Thread Alan Campbell
hello folks, I'm slurping in a large file and seeing a nice speedup versus line by line processing...but I'm losing it in my (likely poorly constructed!) reg-expression match I do: - # # look for potentially problematic code of the following form: - # STW b0, *SP--[3]

Re: Log Parsing using split

2006-05-19 Thread John W. Krahn
Jeff Stout wrote: I need help in extracting specific data from log files. The log file has 51 fields I only need 11 fields from that file. I need to open to a new file output with only the data from the 11 fields. Your code doesn't show which eleven fields you want to output. The new file

Re: Better way to add one line at top of every file(one liner)

2006-05-19 Thread David Romano
On 5/19/06, Luke Bakken [EMAIL PROTECTED] wrote: On 5/19/06, David Romano [EMAIL PROTECTED] wrote: Hi Ankur, On 5/18/06, Ankur Gupta wrote: perl -0777 -p -i -e 'print abcdefgh\n' *.ext or perl -0777 -p -i -e 's#^#abcdefgh\n#' *.ext or ??? I did this: perl -p -i -e '$_ = ($ARGV ne

RE: reg exp speed?

2006-05-19 Thread Timothy Johnson
One thing you could do is precompile the regex and save it in a variable ala my $regex = qr/.*ST\S+\s*\S*B15--.*[^02468]]/o; my @match_sp = $all_lines =~ /$regex/mg; Note the 'o' option on the qr//, which tells perl to compile the regex only once. I'm not sure if it applies in this case or

Re: Help: Need PPT document for Perl Training

2006-05-19 Thread David Romano
Hi Japerlh, On 5/19/06, Japerlh [EMAIL PROTECTED] wrote: I am going to deliver a training about Perl programming to a group of persons. I was wondering where I can get some PPTs to help to promote the training. Have you thought of gleaning stuff from learn.perl.org? Maybe using

Re: reg exp speed?

2006-05-19 Thread David Romano
Hi Alan, On 5/19/06, Alan Campbell wrote: hello folks, I'm slurping in a large file and seeing a nice speedup versus line by line processing...but I'm losing it in my (likely poorly constructed!) reg-expression match I do: - # # look for potentially problematic code of the

Re: Help: Need PPT document for Perl Training

2006-05-19 Thread Ken Foskey
On Fri, 2006-05-19 at 18:46 +0800, Japerlh wrote: I am going to deliver a training about Perl programming to a group of persons. I was wondering where I can get some PPTs to help to promote the training. There is some perl training notes on sourceforge under a funny name like spork I cannot

Re: reg exp speed?

2006-05-19 Thread Dr.Ruud
Alan Campbell schreef: I'm slurping in a large file and seeing a nice speedup versus line by line processing... I would go back to line-by-line again if the regexp should only match within one line. # look for potentially problematic code of the following form: - # STW b0, *SP--[3]

Re: Howto include string in system call

2006-05-19 Thread Wijaya Edward
Dear Jupiter, b) are the variables what you expect them to be in the spork()ed process? Following your advice below it seem so. But... spork( sub { my ( $ue, $con_type, $nb_un ) = @_; # write the variables to a file here and check that file afterwards

Re: Howto include string in system call - Answering (a) suggestion

2006-05-19 Thread Wijaya Edward
Dear Jupiter, a) does it do the job by itself: #!/usr/bin/perl use strict; use warnings; my $ue = 'whatever'; my $con_type = 'whatever'; my $nb_un= 'whatever'; print Running: perl compute_price.pl -email $ue -type $con_type - unit $nb_un\n; system perl