help with first Perl application (repost w/ better subject line)

2002-03-02 Thread James Woods
Greetings all, The address of the page that I'm working on is http://staff.washington.edu/guru/cards.cgi The page seems like it should be pretty simple... but I'm a total newbie to perl. When you check various boxes in the "Play" column and click "Update" the following should happen: 1) the c

Environment Variables help

2002-03-02 Thread Naika - EV1
Can anyone help with this? On a script that is writing to a file I'm able to get some of the variables but not others. Why? $ipaddress = "$ENV{'REMOTE_ADDR'}"; ## Works Fine $where_from = "$ENV{'HTTP_REFERER'}"; ## only seems to report the current page being viewed $host = "$ENV{'REMO

Re: How do I pass a hash to a sub, and get to it in the sub?

2002-03-02 Thread Chas Owens
On Sat, 2002-03-02 at 13:02, Tor Hildrum wrote: > > > > #!/usr/bin/perl > > > > use strict; > > > > my %hash = ( > > key1 => 'value 1', > > key2 => 'value 2', > > key3 => 'value 3', > > ); > > > > print_hash(\%hash, '=>'); > > > > sub print_hash { > > my ($hash, $conn

best perl version for irix 6.2?

2002-03-02 Thread Chantal Polak
Hi all, i'm using an indy from SGI with irix 6.2 installed as a workstation. i'd like to install perl on this machine but i'm asking wich version of perl will be the best for this OS and/or machine... anyone? Chantal -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: FW: Perl install on Win XP

2002-03-02 Thread Johannes Franken
On Sat, Mar 02, 2002 at 08:11:48PM +0200, Shaun O'Reilly wrote: > assign the extension .PL [...] > Perl.exe or Perl.dll or create a new one called Perl.pl? assign it to perl.exe -- Johannes Franken Professional unix/network development mailto:[EMAIL PROTECTED] http://www.jfranken.de/ -- To

Re: If (/start/ .. /end/) Flip Flop Mechanism

2002-03-02 Thread Tor Hildrum
On 2/3/02 12:06, "Steven M. Klass" <[EMAIL PROTECTED]> wrote: > Hi all > > I know there is a flip flop option but I'm not sure thats what I need.. > Here is what I want to do - and I have no idea how to do this. > > Basically I have a section of text that I am doing a search and replace > opera

FW: Perl install on Win XP

2002-03-02 Thread Shaun O'Reilly
-Original Message- From: Shaun O'Reilly [mailto:[EMAIL PROTECTED]] Sent: 02 March 2002 03:01 PM To: [EMAIL PROTECTED] Subject: Perl install on Win XP Hi, I am sorry for being stupid, but I do not understand the following in Perl-5.00502-mswin32-x86.readme: To install this archive, mak

If (/start/ .. /end/) Flip Flop Mechanism

2002-03-02 Thread Steven M. Klass
Hi all I know there is a flip flop option but I'm not sure thats what I need.. Here is what I want to do - and I have no idea how to do this. Basically I have a section of text that I am doing a search and replace operation. The problem is what if the search text doesn't exist - I st

Re: How do I pass a hash to a sub, and get to it in the sub?

2002-03-02 Thread Tor Hildrum
> #!/usr/bin/perl > > use strict; > > my %hash = ( > key1 => 'value 1', > key2 => 'value 2', > key3 => 'value 3', > ); > > print_hash(\%hash, '=>'); > > sub print_hash { > my ($hash, $connector) = @_; > > foreach my $key (sort keys %$hash) { > pri

Re: How do I pass a hash to a sub, and get to it in the sub?

2002-03-02 Thread Chas Owens
On Sat, 2002-03-02 at 11:16, John Crockett wrote: > I'm sure this is such a simple thing, most of you-all are laughing at me > right now. > > main_program > { > blah; > blah; > > %input_parm = (); > $input_parm{PRICE} = "42.00"; > $input_parm{PRODUCT_ID} = "1306"; > $inpu

RE: How do I pass a hash to a sub, and get to it in the sub?

2002-03-02 Thread Wagner-David
Sorry, but input_param-> should have $input_param-> Wags ;) -Original Message- From: Wagner-David Sent: Saturday, March 02, 2002 08:22 To: 'John Crockett'; [EMAIL PROTECTED] Subject: RE: How do I pass a hash to a sub, and get to it in the sub? The simplest is to pass as

RE: How do I pass a hash to a sub, and get to it in the sub?

2002-03-02 Thread Wagner-David
The simplest is to pass as reference: my_subroutine( \%input_parm ) Now in the subroutine: my ( $input_parm ) = @_; To work with you would can use this notation: if (input_parm->{CUSTID} == 23489) { # when equal to

How do I pass a hash to a sub, and get to it in the sub?

2002-03-02 Thread John Crockett
I'm sure this is such a simple thing, most of you-all are laughing at me right now. main_program { blah; blah; %input_parm = (); $input_parm{PRICE} = "42.00"; $input_parm{PRODUCT_ID} = "1306"; $input_parm{INVENTORY_LOC} = "107"; $input_parm{CUSTID} = "23489"; my_

Re: How can I distrubit a Perl execute envrioment

2002-03-02 Thread Ricky
My distribute dictation is stand alone computer not in a LAN, so a well work environment is important to me. "Timothy Johnson" <[EMAIL PROTECTED]> wrote in message C0FD5BECE2F0C84EAA97D7300A500D5002581016@SMILEY...">news:C0FD5BECE2F0C84EAA97D7300A500D5002581016@SMILEY...; > > The registry changes

Ip address

2002-03-02 Thread Timo\[AIL\]
hi... i wrote a client-server script using IO::Socket. now i want to get the ipaddress from the client, which connecte to my server! how can i find it out? mfg Timo hallek -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

in over my head, but having fun treading water

2002-03-02 Thread James Woods
Greetings all, I've attached my code as a text document (hope this newsgroup takes attachments!) The address of the page that I'm working on is http://staff.washington.edu/guru/cards.cgi The page seems like it should be pretty simple... but I'm a total newbie to perl. When you check various