Re: Automatic Module install

2005-08-25 Thread Binish A R
Chris Devers wrote: On Fri, 26 Aug 2005, Binish A R wrote: I've my script which uses Expect Module. But the problem is that Expect module isn't installed by default ( at least in the machines that I've checked, viz RH9 ) Can I write some code that will automatically install a m

Re: Automatic Module install

2005-08-25 Thread Chris Devers
On Fri, 26 Aug 2005, Binish A R wrote: > I've my script which uses Expect Module. > > But the problem is that Expect module isn't installed by default ( at > least in the machines that I've checked, viz RH9 ) > > Can I write some code that will automatically install a module from > CPAN if there

Automatic Module install

2005-08-25 Thread Binish A R
I've my script which uses Expect Module. But the problem is that Expect module isn't installed by default ( at least in the machines that I've checked, viz RH9 ) Can I write some code that will automatically install a module from CPAN if there isn't one? --

RE: Can some help me out to send this module "Date::DayOfNthWeek "

2005-08-25 Thread Anil Kumar, Malyala
Chris, I'm trying to fetch one Issuing "C:\WINDOWS\system32\ftp.EXE -n" Local directory now C:\perl\.cpan\sources. GOT C:\perl\.cpan\sources\MIRRORED.BY You have an empty C:\perl\.cpan\sources\MIRRORED.BY, I'm trying to fetch one Issuing "C:\WINDOWS\system32\ftp.EXE -n" Local directory now C

RE: Can some help me out to send this module "Date::DayOfNthWeek "

2005-08-25 Thread Chris Devers
On Fri, 26 Aug 2005, Anil Kumar, Malyala wrote: > I have issued the command "sudo perl -MCPAN -e shell", but giving > error So then issued "perl -MCPAN -e shell" > > Still it is executing... How much time does it take > The last statement showing is > Issuing "C:\WINDOWS\system32\ftp.EXE -n" >

RE: Can some help me out to send this module "Date::DayOfNthWeek "

2005-08-25 Thread Anil Kumar, Malyala
Hi Chris, I have issued the command "sudo perl -MCPAN -e shell", but giving error So then issued "perl -MCPAN -e shell" Still it is executing... How much time does it take The last statement showing is Issuing "C:\WINDOWS\system32\ftp.EXE -n" Local directory now C:\perl\.cpan\sources. GOT C:\p

Re: UID question

2005-08-25 Thread Tony Frasketi
Thanks very much John. John W. Krahn wrote: Tony Frasketi wrote: Is there an ASCII equivalent to the numeric value UID returned by stat($filename)[4] and if so is there a function to aquire the ASCII value... Also is the UID related to the owner of the file as shown in the directory displa

Re: Can some help me out to send this module "Date::DayOfNthWeek "

2005-08-25 Thread Chris Devers
On Fri, 26 Aug 2005, Anil Kumar, Malyala wrote: > Can someone help me to get this module. > > I am trying to dowbload the module from > http://search.cpan.org/search?query=first+day+of+every+week&mode=all > > But it is corrupted. > > It is little urgent. If it was THAT urgent, you should have

Can some help me out to send this module "Date::DayOfNthWeek "

2005-08-25 Thread Anil Kumar, Malyala
Hi Friends, Can someone help me to get this module. I am trying to dowbload the module from http://search.cpan.org/search?query=first+day+of+every+week&mode=all But it is corrupted. It is little urgent. Anil -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

Re: UID question

2005-08-25 Thread John W. Krahn
Tony Frasketi wrote: > Is there an ASCII equivalent to the numeric value UID returned by > stat($filename)[4] and if so is there a function to aquire the ASCII > value... Also is the UID related to the owner of the file as shown in > the directory display ls -al in Unix? > > If UID and file owner

Re: Need a list of files in a dir.

2005-08-25 Thread Ezra Taylor
Your a funny dude Chris. On 8/25/05, Chris Devers <[EMAIL PROTECTED]> wrote: > On Thu, 25 Aug 2005, Luinrandir wrote: > > > How do I get the list of files in a DIR and put in an array? > > > > I'm drawing a blank on my search for this. > > Try writing a program instead, that seems to work better

Re: Need a list of files in a dir.

2005-08-25 Thread Luinrandir
Thanks.. I'll look it over Lou - Original Message - From: "John W. Krahn" <[EMAIL PROTECTED]> To: "Perl Beginners" Sent: Thursday, August 25, 2005 6:26 PM Subject: Re: Need a list of files in a dir. > Luinrandir wrote: > > How do I get the list of files in a DIR and put in an array? >

Re: Need a list of files in a dir.

2005-08-25 Thread John W. Krahn
Luinrandir wrote: > How do I get the list of files in a DIR and put in an array? perldoc -f opendir perldoc -f readdir perldoc -f glob John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Need a list of files in a dir.

2005-08-25 Thread Chris Devers
On Thu, 25 Aug 2005, Luinrandir wrote: > How do I get the list of files in a DIR and put in an array? > > I'm drawing a blank on my search for this. Try writing a program instead, that seems to work better than drawing. Some people use globs in their programs for this. What did you try? -

UID question

2005-08-25 Thread Tony Frasketi
Is there an ASCII equivalent to the numeric value UID returned by stat($filename)[4] and if so is there a function to aquire the ASCII value... Also is the UID related to the owner of the file as shown in the directory display ls -al in Unix? If UID and file ownership is not, however related,

Need a list of files in a dir.

2005-08-25 Thread Luinrandir
How do I get the list of files in a DIR and put in an array? I'm drawing a blank on my search for this. thanks Lou -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Multi Line Pattern Matching

2005-08-25 Thread Xavier Noria
On Aug 26, 2005, at 0:43, Jose Malacara wrote: Can someone please provide some assitance with a multi-line matching problem? I have a datafile that looks like this: Input file START foo1 bar1 END START foo2 bar2 END START foo3 bar3 END I am trying to capture the contents between

Re: Multi Line Pattern Matching

2005-08-25 Thread John W. Krahn
Jose Malacara wrote: > Can someone please provide some assitance with a multi-line matching > problem? I have a datafile that looks like this: > > Input file > START > foo1 > bar1 > END > START > foo2 > bar2 > END > START > foo3 > bar3 > END > > I am trying to capture the contents b

Multi Line Pattern Matching

2005-08-25 Thread Jose Malacara
Can someone please provide some assitance with a multi-line matching problem? I have a datafile that looks like this: Input file START foo1 bar1 END START foo2 bar2 END START foo3 bar3 END I am trying to capture the contents between the START and END delineators. Here is what I have

RE: use Module VERSION; ignoring version???

2005-08-25 Thread Bob Showalter
JupiterHost.Net wrote: > How come "use MODULE VERSION;" works sometimes and not others? > > In this case: > > $ perl -mstrict -we 'use CGI 3.12;print "$CGI::VERSION\n";' > CGI version 3.12 required--this is only version 3.11 at -e line 1. > BEGIN failed--compilation aborted at -e line 1. > $ perl

use Module VERSION; ignoring version???

2005-08-25 Thread JupiterHost.Net
How come "use MODULE VERSION;" works sometimes and not others? In this case: $ perl -mstrict -we 'use CGI 3.12;print "$CGI::VERSION\n";' CGI version 3.12 required--this is only version 3.11 at -e line 1. BEGIN failed--compilation aborted at -e line 1. $ perl -mstrict -we 'use File::Copy::Recursi

Re: Program is exiting on a failure

2005-08-25 Thread Wiggins d'Anconia
Chris Lyon wrote: > I seem to be erroring out @ the $session->login portion of my program > because the module that I am call is saying the password/username is > bad. How do I trap the error and exit cleanly without just dumping > from the application: > > > login failed: access denied or bad us

Program is exiting on a failure

2005-08-25 Thread Chris Lyon
I seem to be erroring out @ the $session->login portion of my program because the module that I am call is saying the password/username is bad. How do I trap the error and exit cleanly without just dumping from the application: login failed: access denied or bad username at ./cisco.pl line 47 $s

Re: faster templates

2005-08-25 Thread Octavian Rasnita
Thank you. I also found that web page searching with Google and I think I will try HTML::Template. Teddy - Original Message - From: "Charles K. Clarkson" <[EMAIL PROTECTED]> To: "'Perl Beginners List'" Sent: Thursday, August 25, 2005 19:28 PM Subject: RE: faster templates > Octavian

Re: quantity discount calculation lookup tables

2005-08-25 Thread Scott R. Godin
Jeff 'japhy' Pinyan wrote: On Aug 15, Scott R. Godin said: Jeff 'japhy' Pinyan wrote: Oh, Jolly Good! though I'm somewhat concerned with how much memory that would take up. Ultimately this would be running as a cgi processing a web-form submission. Unless you're dealing with thousands of

RE: GUI-based menu-ing script for UNIX

2005-08-25 Thread Timothy Johnson
CORRECTION: Perl/Tk? -Original Message- From: Timothy Johnson Sent: Thursday, August 25, 2005 11:34 AM To: [EMAIL PROTECTED]; beginners@perl.org Subject: RE: GUI-based menu-ing script for UNIX That all depends on how involved you want this project to be. Have you looked at Tk? ---

RE: GUI-based menu-ing script for UNIX

2005-08-25 Thread Timothy Johnson
That all depends on how involved you want this project to be. Have you looked at Tk? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, August 25, 2005 11:24 AM To: beginners@perl.org Subject: GUI-based menu-ing script for UNIX Is there any easy to cu

GUI-based menu-ing script for UNIX

2005-08-25 Thread William . Ampeh
Is there any easy to customize GUI-based menu-ing script for UNIX? I currently have a text-base menu program for gluing my applications, and I am interested in putting in revising it to a GUI-based (for a change). Currently I am looking at aumenu, which according to the documentation, was deve

RE: faster templates

2005-08-25 Thread Charles K. Clarkson
Octavian Rasnita wrote: That's not the recommended method of testing template systems. See http://perl.apache.org/docs/tutorials/tmpl/comparison/comparison.html for a comparison article. In the performance section IDs a reference to a comparison available on line htt

Question using LWP

2005-08-25 Thread Mike Blezien
Hello, I have a script that uses the LWP module to pass data to a remote script B, that process the data sent from script A the code in script A passes data from a standard form to script B($post_url): # send to paypro script via the LWP. use LWP::UserAgent; my $ua = new LWP::U

Re: IO::Socket squirreliness

2005-08-25 Thread Mason Loring Bliss
On Wed, Aug 24, 2005 at 04:14:15PM -0400, Bob Showalter wrote: > A connect() followed by a close() is just another form of this scenario. You > need to have a client socket in order to detect the peer's closing the > connection. That clarifies things quite nicely. Thank you very much! -- Mason

Re: faster templates

2005-08-25 Thread Octavian Rasnita
Yes I have measured. I have put in my program: my $begin = (times)[0]; ...code my $step1 = (times)[0] - $begin; ...another piece of code my $step2 = (times)[0] - $begin; ...and so on. So I have seen how much time takes each piece of code. After the last step in which tt parses the template

Re: using system to run ssh $host command

2005-08-25 Thread Manav Mathur
Hi: Try this: = `rsh -l 'command arg1 arg2 ..`; This works for me, I don't know if this is the best way or if it the more secure way to run a command in a remore machine, try to search CPAN for a module that can do something similar. Pablo. On 8/24/05, grover mitchell <[EMAIL PROTECTED]>

Re: Reg Closure in Perl

2005-08-25 Thread Ankur Gupta
On 8/25/2005 10:46 AM praba har wrote: Dear All, Kindly let me know what is closure and why we need it. People will explain you what it is once you go through the FAQs of this mailing list. http://learn.perl.org/beginners-faq [...] 2.2 - What is this list _not_ for? * SPAM

Re: faster templates

2005-08-25 Thread Chris Devers
On Thu, 25 Aug 2005, Octavian Rasnita wrote: > I am trying to speed up a site that uses mod_perl because it works > slowly. I have done many changes in MySQL queries and they are working > now much faster, but the site is still slow and I think this is > because I use Template-Toolkit. Do you

Re: Reg Closure in Perl

2005-08-25 Thread Jeff 'japhy' Pinyan
Hang on. First you email the list asking for Perl Interview questions. Then you email the list asking for answers to these questions. If you cannot get through the interview based on your OWN PERSONAL knowledge of Perl, you do not deserve to GET the job. If you are not the level of programme

Re: using system to run ssh $host command

2005-08-25 Thread Pablo Wolter
Hi: Try this: = `rsh -l 'command arg1 arg2 ..`; This works for me, I don't know if this is the best way or if it the more secure way to run a command in a remore machine, try to search CPAN for a module that can do something similar. Pablo. On 8/24/05, grover mitchell <[EMAIL PROTECTED]>

faster templates

2005-08-25 Thread Octavian Rasnita
Hi, I am trying to speed up a site that uses mod_perl because it works slowly. I have done many changes in MySQL queries and they are working now much faster, but the site is still slow and I think this is because I use Template-Toolkit. I like Template-Toolkit very much because it is so complex

RE: is there isnumber() function in perl?

2005-08-25 Thread Charles K. Clarkson
Jayvee Vibar wrote: : Is there an IsNumber() function in perl? I'm looking for a way to : determine of a given $variable is numeric or not. Thanks. Read perlfaq4: "How do I determine whether a scalar is a number/whole/integer/float?" HTH, Charles K. Clarkson --

Re: delete character in string?

2005-08-25 Thread Xavier Noria
On Aug 25, 2005, at 3:34, Jayvee Vibar wrote: Is there a function to delete a character in string? Thanks. Depending on the details this can be substr(), s///, tr///, -- fxn -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: is there isnumber() function in perl?

2005-08-25 Thread Xavier Noria
On Aug 25, 2005, at 3:22, Jayvee Vibar wrote: Is there an IsNumber() function in perl? I'm looking for a way to determine of a given $variable is numeric or not. Thanks. If you need to know whether it looks like a number there are a few ways, see perldoc -q determine If on the other

Re: is there isnumber() function in perl?

2005-08-25 Thread hot flame
Use regex.. ($variable =~ /^\d+$/)?1:0; On 8/25/05, Jayvee Vibar <[EMAIL PROTECTED]> wrote: > Hello, > > Is there an IsNumber() function in perl? I'm looking for a way to determine > of a given $variable is numeric or not. Thanks. > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For ad

delete character in string?

2005-08-25 Thread Jayvee Vibar
Hello, Is there a function to delete a character in string? Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

is there isnumber() function in perl?

2005-08-25 Thread Jayvee Vibar
Hello, Is there an IsNumber() function in perl? I'm looking for a way to determine of a given $variable is numeric or not. Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]