finally i made the code work for me :) - thanks for inspiration - i own you
a code - hope you can do it easiest way - i am just begginer - so it's
likely the simplest way to achive the same result
the code was:
$sth->prepare(SELECT * FROM table);
$sth->execute;
$ref = $sth->fetchall_arrayref;
pri
Thanks for the clarification. I was misunderstanding how a HoH works. Ed
-Original Message-
From: Ed Sickafus [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 19, 2003 5:18 PM
To: [EMAIL PROTECTED]
Subject: naming a variable as a numeric value
I asked in a previous query ...
Is
Hi,
I am trying to install Time::HiRes module and I am getting the following error:
C:\>ppm
PPM interactive shell (2.1.6) - type 'help' for available commands.
PPM> install Time-HiRes
Install package 'Time-HiRes?' (y/N): y
Installing package 'Time-HiRes'...
Error installing package 'Time-HiRes':
In a message dated 1/20/2003 12:18:33 PM Eastern Standard Time,
[EMAIL PROTECTED] writes:
> I am trying to install Time::HiRes module and I am getting the following
> error:
>
> C:\>ppm
> PPM interactive shell (2.1.6) - type 'help' for available commands.
> PPM> install Time-HiRes
> Install pa
Although you all are trying, I'm still not getting it -- namely, how to use
the hash names in a HoH.
My reference shows the following template for a HoH:
outermost hash
| inner level of hashes
| | innermost key/value pairs
| |
We will get you there, eventually, ;-)...
Ed Sickafus wrote:
Although you all are trying, I'm still not getting it -- namely, how to use
the hash names in a HoH.
My reference shows the following template for a HoH:
outermost hash
| inner level of hashes
| | innermo
Ed,
A 'cleaner' approach.
#!/usr/bin/perl -w
use strict;
my %hash = (
fruits => {
favorite => "apples",
'second favorite' => "oranges",
},
vegetables => {
favorite => "corn",
'second favorite' => "peas",
'least favorite' => "turnip",
},
meats =>
Dave K wrote:
Ed,
A 'cleaner' approach.
The central (as opposed to key) point:
In the expression:
$hash{$ohk}->{$ihk}
$hash{$ohk} is the _value_ of a hash, but that _value_ is a reference to a
hash,
so we can use the '->' syntax. Think of:
$hash{$ohk}->
as identifying that (pesky anonymous)
I am writing a cgi script to run as a cron job. when
it runs i need the date of 'one year ago today' in the
format '-MM-DD' to be stored in a variable to be
used later in the script. I am about as dumb as wet
dirt when it comes to cgi. Can someone please help me
with this?
Thanks!
___
I've tried this method, but it doesn't work for Perl 5.8 but only for Perl
5.6.1
I've tried more modules downloaded from ActiveState.
Teddy,
Teddy's Center: http://teddy.fcc.ro/
Email: [EMAIL PROTECTED]
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTEC
10 matches
Mail list logo