running interactively

2005-10-12 Thread Adriano Allora
ha to all, I need to use a a shell-program but I cannot pass all the arguments to this program via system() function. In other words: the program doesn't accept all the arguments via command line: I need to open it and write interactively some instructions. Is there a module which works in

Re: running interactively

2005-10-12 Thread Chris Devers
On Wed, 12 Oct 2005, Adriano Allora wrote: I need to use a a shell-program but I cannot pass all the arguments to this program via system() function. In other words: the program doesn't accept all the arguments via command line: I need to open it and write interactively some instructions.

RE: running interactively

2005-10-12 Thread Bob Showalter
Adriano Allora wrote: ha to all, Ha back! I need to use a a shell-program but I cannot pass all the arguments to this program via system() function. In other words: the program doesn't accept all the arguments via command line: I need to open it and write interactively some instructions.

weird script!

2005-10-12 Thread Adriano Allora
hi to all, I want to write a very stupid script. It shuold: - upload a file from client (works) - extratc ascii from html (works) - show the sentence number X (works for nr.0) - create a button following sentence (does not work!) - redirect to the same page and re-upload the same file to show

implementing links on a system command output

2005-10-12 Thread DBSMITH
I have written a CGI Perl program that allows my users to view relevant data. The data is produced by a Unix application command and I have told it to write to a intranet page that looks like: |--| | ( ) | |--|All-Clients |--| | ( ) | |--|Backup-Tapes |--| | ( ) |

difference between 'subroutine()' and 'subroutine()'

2005-10-12 Thread Jeff Pan
HI, I want to know what's the difference when I call a subroutine with '' or without ''. such as: subroutine(); sub subroutine{ .. } or subroutine(); sub subroutine{ .. } Can anyone tell me?thanks a lot. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: difference between 'subroutine()' and 'subroutine()'

2005-10-12 Thread Xavier Noria
On Oct 12, 2005, at 10:16, Jeff Pan wrote: I want to know what's the difference when I call a subroutine with '' or without ''. Sure, that's documented in perlsub. Check for instance the comments in the code below To call subroutines: in the very SYNOPSIS. -- fxn -- To unsubscribe,

Re: fork + objects + logging

2005-10-12 Thread Marcello
Tom Allison ha scritto: [snip other question] Logging: I am using a package Log::Dispatch to do my logging. Is there any penalty to loading the same modules for Log::Dispatch into multiple Packages (Main plus all my custom package/modules)? IIRC this should share the memory but allow each

flock network

2005-10-12 Thread Tom Allison
perldoc says I can't do flock over a network. I assume this is NFS mounted files. Two questions: How do I test for NFS mounting so I can flag it as a problem in my code? What options are there for locking over NFS besides using foo.lock files all over the place? -- To unsubscribe, e-mail:

Formatting Variables

2005-10-12 Thread Ryan Frantz
Perlers, Is there are way to format a variable before placing it into an array or hash? I have several variables that contain floating point numbers that I format prior to printing out: my $float = 12.3456; print %2.1f\n, $float; I'd like to place these scalars into an array for

Re: Formatting Variables

2005-10-12 Thread Wiggins d'Anconia
Ryan Frantz wrote: Perlers, Is there are way to format a variable before placing it into an array or hash? I have several variables that contain floating point numbers that I format prior to printing out: my $float = 12.3456; print %2.1f\n, $float; perldoc -f sprintf

RE: Formatting Variables

2005-10-12 Thread Ryan Frantz
-Original Message- From: Wiggins d'Anconia [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 12, 2005 5:31 PM To: Ryan Frantz Cc: Perl Beginners List Subject: Re: Formatting Variables Ryan Frantz wrote: Perlers, Is there are way to format a variable before placing it

Matching same Name

2005-10-12 Thread Mark davenport
Hello, I am writing a program that will do the following: Create an email when you see the same name 3 times. How would i go about doing this: I am capturing an error message and when I see a name 3 times I need to send an email.(Using Blat) thanks mark

Re: flock network

2005-10-12 Thread John Doe
Tom Allison am Mittwoch, 12. Oktober 2005 15.55: [...] Since you got no answer yet from somebody knowing better: How do I test for NFS mounting so I can flag it as a problem in my code? hand made: examine /proc/mounts ... But I'm shure there are much better ways. What options are there for

Re: Matching same Name

2005-10-12 Thread John W. Krahn
Mark davenport wrote: Hello, Hello, I am writing a program that will do the following: Create an email when you see the same name 3 times. How would i go about doing this: I am capturing an error message and when I see a name 3 times I need to send an email.(Using Blat) my %count;

input web page question

2005-10-12 Thread Luinrandir
I know this question has been asked before. I have done a search on thelist and the web.. I can't find it.. thought i saved it.. help? how do a capture a web page to a var so I can strip the html? Lou -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: input web page question

2005-10-12 Thread Chris Devers
On Wed, 12 Oct 2005, Luinrandir wrote: I know this question has been asked before. Then you may recognize the forthcoming answer, too... :-) I have done a search on thelist and the web.. I can't find it.. thought i saved it.. help? how do a capture a web page to a var so I can strip the

Re: input web page question

2005-10-12 Thread Luinrandir
there is no code yet.. i will write the code. i need the one line that get the web page $Input=?? answers like your suck.. why do you bother. - Original Message - From: Chris Devers [EMAIL PROTECTED] To: Luinrandir [EMAIL PROTECTED] Cc: beginners@perl.org Sent: Wednesday, October

Re: input web page question

2005-10-12 Thread Chris Devers
On Wed, 12 Oct 2005, Luinrandir wrote: there is no code yet.. i will write the code. i need the one line that get the web page $Input=?? answers like your suck.. why do you bother. Funny, I was wondering the same thing about your question :-) The answer is to look up, and read, the

Re: input web page question

2005-10-12 Thread Luinrandir
ok this is the code i have so far there it is... since i don't know how to call/capture/open the web page and get the HTML to a variable, there is not much I can do. Once I get the HTML into a var.. i can do the rest. as to moduals.. i barly know perl.. much less moduals.. LWP has no

Re: input web page question

2005-10-12 Thread Chris Devers
On Wed, 12 Oct 2005, Luinrandir wrote: ok this is the code i have so far there it is... since i don't know how to call/capture/open the web page and get the HTML to a variable, there is not much I can do. Once I get the HTML into a var.. i can do the rest. as to moduals.. i barly know

Query, Finding IP Address of all the connected machines to remote server?

2005-10-12 Thread Sanjaykumar Gupta
Hi all, I an new to group and perl itself. I need to find the IP address of the machines, which tries/does access my unix server. For eq if someone connect using ftp, telnet,ssh or anyother tool I need to know the IP address of the user and the time when he connected. Thank you all for