Thank you SO much...I love it that guys who know what they're doing are
willing to help us newbies!
JC
"Chas Owens" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> 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
inal Message-
> From: John Crockett [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 02, 2002 08:17
> To: [EMAIL PROTECTED]
> Subject: How do I pass a hash to a sub, and get to it in the sub?
>
>
> I'm sure this is such a simple thing, most of you-all are la
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
> #!/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
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
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 sim
day, March 02, 2002 08:17
To: [EMAIL PROTECTED]
Subject: How do I pass a hash to a sub, and get to it in the sub?
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}
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_