Re: Multiple Parameters

2004-07-25 Thread JupiterHost.Net
[EMAIL PROTECTED] wrote: Hello, I am trying to write a search and replace script that can accept multiple arguments, but i want the first argument to be the filename to read, the next one to be the string to search for, the next one to be the replacement string, and the last one to be the name of

RE: Errors installing modules on Solaris 9

2004-07-25 Thread JR Miller
Yes, I am running as root. gmake and gcc are in the path, tested this before trying the install. Thanks, -JR Miller -Original Message- From: Eliezer Ramm [mailto:[EMAIL PROTECTED] Sent: Sunday, July 25, 2004 06:00 To: JR Miller Subject: Re: Errors installing modules on Solaris 9 a)

Re: Errors installing modules on Solaris 9

2004-07-25 Thread Dalton Marris
- Original Message - From: JR Miller [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 25, 2004 6:28 AM Subject: Errors installing modules on Solaris 9 New to loading PERL modules and can't figure this one out. Running Solaris 9 with current patches, PERL is v5.6.1 built for

RE: Errors installing modules on Solaris 9

2004-07-25 Thread JR Miller
- Original Message - From: JR Miller [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 25, 2004 6:28 AM Subject: Errors installing modules on Solaris 9 New to loading PERL modules and can't figure this one out. Running Solaris 9 with current patches, PERL is v5.6.1

RE: Multiple Parameters

2004-07-25 Thread mafioso1823
Another question, so far i have this script: #!/usr/bin/perl use IO::File; die Usage: script OLD_FILE, SEARCH, REPLACE, NEW_FILE\n unless @ARGV == 4; my($old_file, $search, $replace, $new_file) = @ARGV; $fh = new IO::File $new_file; if (defined $fh) { while(){

Get .exe or .zip file from the server via perl script

2004-07-25 Thread Nicolay A. Vasiliev
Hello, there! I need to implement the thing in the subject described. Conceptually there are two steps: 1) logging into the system at some web-server; 2) getting some binary (zip or exe) and putthing this at my web-server. I imagine approximately how can I implement the first step. But I don't

[SOLUTION] how can i generate 10 unique (non repeating) numbers

2004-07-25 Thread Absolut Newbie
greets to Peter Scott for pointing to Randal Schwartz's answer on C.L.P.M. http://groups.google.com/groups?hl=enlr=ie=UTF-8selm=86hds1fa6n.fsf%40blue.stonehenge.com [SOLUTION] use List::Util from CPAN http://search.cpan.org/~gbarr/Scalar-List-Utils-1.14/lib/List/Util.pm basically you use the

Trouble with PERL and HTML

2004-07-25 Thread renzo rizzato
Hallo to all from a newby, I am facing the following problem, in a HTML document (www.primocenter.net) I put the intruction, in the guest.html: FORM ACTION=cgi-bin/email.pl METHOD=POST, when I press submit, effectively, the program opens the file /cgi-bin/mail.it, but when i try, from the

Re: Get .exe or .zip file from the server via perl script

2004-07-25 Thread Gunnar Hjalmarsson
Nicolay A. Vasiliev wrote: I don't know anything how to download the file via perl script. This code, which I copied from a program of mine, may get you started: open FILE, $dir/$file or die Can't open ... $!; binmode FILE; binmode STDOUT; print Content-Type: application/zip\n,

Re: Trouble with PERL and HTML

2004-07-25 Thread David Dorward
On Sun, 2004-07-25 at 19:17, renzo rizzato wrote: The requested URL /cgi-bin/index.html was not found on this server. For a reason I cannot understand, the system keeps to stay in the cgi-bin directory, why? You haven't shown any code, so I'm going to make a wild guess. You have a link to

Re: Trouble with PERL and HTML

2004-07-25 Thread Gunnar Hjalmarsson
Renzo Rizzato wrote: Hallo to all from a newby, I am facing the following problem, in a HTML document (www.primocenter.net) I put the intruction, in the guest.html: FORM ACTION=cgi-bin/email.pl METHOD=POST, when I press submit, effectively, the program opens the file /cgi-bin/mail.it, but when i

Re: Trouble with PERL and HTML

2004-07-25 Thread renzo rizzato
Alle 20:24, domenica 25 luglio 2004, David Dorward ha scritto: On Sun, 2004-07-25 at 19:17, renzo rizzato wrote: The requested URL /cgi-bin/index.html was not found on this server. For a reason I cannot understand, the system keeps to stay in the cgi-bin directory, why? You haven't

Re: Multiple Parameters

2004-07-25 Thread James Edward Gray II
On Jul 25, 2004, at 12:55 PM, [EMAIL PROTECTED] wrote: Another question, so far i have this script: #!/usr/bin/perl use strict; use warnings; The above two lines ask Perl to hold you to the laws of good programming. In return, you'll get better error messages and warnings about things that

RE: New Line / Chomp Query

2004-07-25 Thread David Clarke
Codes goes along this way : $current_record = $_; if (substr($current_record, 0, 6) eq 'GRSUMC') { # Remove new line marker chomp($current_record = $current_record); # Attach run no to end of record $current_record = $current_record . $run_no . \n; }