Problem writing JavaScript method with CGI.pm

2005-03-03 Thread Tyson Sommer
I am trying to use CGI.pm to build a button for a form that has an onClick method defined that's supposed to make the page reload itself. Here's the code I'm using (assume strictures and warnings, and that $q = new CGI;): Current working code: - sub tt_write_form () { #

RE: printing output of ping command -- New question at bottom.

2005-02-24 Thread Tyson Sommer
-Original Message- From: Chris Devers [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 1:18 PM To: Tyson Sommer Cc: 'Perl Beginners List' Subject: Re: printing output of ping command -- New question at bottom. On Wed, 23 Feb 2005, Tyson Sommer wrote

RE: printing output of ping command -- New question at bottom.

2005-02-24 Thread Tyson Sommer
-Original Message- From: John W. Krahn [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 2:50 PM To: Perl Beginners Subject: Re: printing output of ping command -- New question at bottom. Tyson Sommer wrote: This might be a question for beginners-cgi

RE: Using the perl debugger with options

2005-02-23 Thread Tyson Sommer
-Original Message- From: radhika [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 22, 2005 12:37 PM To: beginners@perl.org Subject: Using the perl debugger with options Hi, I am a beginner perl programmer (but not exactly a novice) and am writing a perl module which is

printing output of ping command -- New question at bottom.

2005-02-23 Thread Tyson Sommer
-Original Message- From: Chris Devers [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 10:14 AM To: TapasranjanMohapatra Cc: Perl Beginners List Subject: Re: printing output of ping command On Wed, 23 Feb 2005, TapasranjanMohapatra wrote: I have a script as

Challenge (for me, at least)

2005-02-18 Thread Tyson Sommer
Is there any way to squeeze the following into one line? (assume using CGI.pm and that my $q = new CGI;): $device = $q-param( device_name ); $device = $ARGV[0] if ! $device; $device = default_device if ! $device; i.e., first see if we're being used with a CGI form, if

Securing user data

2005-02-18 Thread Tyson Sommer
Are there any not-so-obvious problems with untainting user input for passing to the shell with something like (for the sake of simplicity): # need to be able to use . and - characters as well as alphanumerics chomp ( my $input = STDIN ); $input =~ s/[^A-Za-z0-9\-\.]//g;

RE: Capturing the results from Expect with backtick

2005-02-17 Thread Tyson Sommer
-Original Message- From: glidden, matthew [mailto:[EMAIL PROTECTED] Sent: Thursday, February 17, 2005 10:15 AM To: 'beginners@perl.org' Subject: Capturing the results from Expect with backtick I'm using combined perl and Expect scripts to do the following: 1. ping a host

Grep or regex

2005-02-16 Thread Tyson Sommer
I need to iterate over a list of data to extract a line that matches a pattern that I have set in a variable. Is there any way to use variable substitution within a regular expression? So far, this is all I have been able to get to work: -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Grep or regex -- completed.

2005-02-16 Thread Tyson Sommer
Oops! Accidentally hit ctl-enter rather than ctl-v for paste and sent the message prematurely... Then I found the answer while trying to complete this email. So... Nevermind. Sorry! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: snmp requests CORRECTED!

2005-02-15 Thread Tyson Sommer
to the list and less than a year in the Perl world (but I am fairly familiar with this subject)... Regards, Tyson Sommer, CCNP Network Support Specialist First Cash Financial Services, Inc. MIS Department -- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Perldoc.com

2005-02-08 Thread Tyson Sommer
Is something awry with perldoc.com? I haven't been able to reach it for a few days. I get pings back, and the browser says page found, but it never loads. Thanks! Tyson (noob - 1st post to beginners) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL