php like behavior for my perl CGI...and DBI followup

2003-02-14 Thread Peter Kappus
Thanks to Rob for his Class::DBI suggestion earlier. Looks like what I needed was simply: my %hash; return $sth->fetchall_arrayref(\%hash); to return an array of hashes... As I'm continuing with my latest project, I'm finding myself wishing I could do some PHP type things...spec

Re: php like behavior for my perl CGI...and DBI followup

2003-02-15 Thread drieux
On Friday, Feb 14, 2003, at 19:02 US/Pacific, Peter Kappus wrote: [..] In PHP this can be streamlined by creating a function which prints out your image tag for your and accepts the height and width as parameters. like so: function spacer($y,$x){ ?> } [..] i'd like to be able to use the "pr