Re: data structure

2002-05-05 Thread Jonathan E. Paton
> hence since we are playing the > > @hash{@keys_oh_hash}; > > game we don't want to get that confused with the "->" component > > >http://www.wetware.com/drieux/CS/lang/Perl/Beginners/BenchMarks/complexArrayHash_v_loop. > txt > > for the details on the comparison > > looks lik

RE: Serious problem with perl -pi -e

2002-05-05 Thread Sharan Hiremath
Thanks a log Shawn, But setting of this variable, now (after installation), will it be helpful. Thanks and Regards Sharan Hiremath. -Original Message- From: Shawn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 11:21 PM To: Sharan Hiremath Cc: [EMAIL PROTECTED] Subject: Re: Ser

Re: data structure

2002-05-05 Thread drieux
On Sunday, May 5, 2002, at 03:07 , Jonathan E. Paton wrote: [..] > print join (" ", @hash{qw}); sick, but it works > Appears the array symbol is required, and probably the above would need to > be changed to: > > print join (" : ", @{%$_}->{qw}) . "\n" for @$cfgs; One Clump over the line -

Re: data structure

2002-05-05 Thread Jonathan E. Paton
> > And also there is no need to quote hash keys, and if $inner is just a > > hash reference then the > > following is a shorter replacement: > > > > print join (" : ", $_->{qw}) . "\n" for @$cfgs; > > I have not been able to get any variant of this to work. Try this FAR simplier case, which do

Re: data structure

2002-05-05 Thread drieux
On Sunday, May 5, 2002, at 12:17 , Jonathan E. Paton wrote: > And also there is no need to quote hash keys, and if $inner is just a > hash reference then the > following is a shorter replacement: > > print join (" : ", $_->{qw}) . "\n" for @$cfgs; I have not been able to get any variant of thi

Re: data structure

2002-05-05 Thread John West
The print was just there as an example - what is done with those values is actually a little more complex. I like using quoted hash keys because they show up better in the syntax-aware editor I use. I did try this before I sent the message, but in the original block of code. I think somehow in

Re: data structure

2002-05-05 Thread Jonathan E. Paton
> Did you try it? You are right, the second foreach is totally redundant. > > > foreach my $item ( @$cfgs ) > > { > > foreach my $inner ( $item ) > > { > > print "$inner->{'dir'} : $inner->{'tpl'} : $inner->{'ext'} : >$inner->{'rgx'}\n"; > > } > > The only effect the second

Re: data structure

2002-05-05 Thread Paul Johnson
On Sun, May 05, 2002 at 11:37:20AM -0700, John West wrote: > The environment here is to complex and relies on > proprietary vendor tools which I can't send, so here's > a chunk. I'm trying to figure out if the second > foreach is really required in the code below - > preferably there is a way to

data structure

2002-05-05 Thread John West
The environment here is to complex and relies on proprietary vendor tools which I can't send, so here's a chunk. I'm trying to figure out if the second foreach is really required in the code below - preferably there is a way to do this with a single foreach statement? my %tplCfg = ( "categor

Quick Database guide

2002-05-05 Thread Arran Ubels
Can anyone provide a link (or possibly write) a quick start guide on databases in perl, i am migrating from Delphi. From: Arran Ubels For more contact details goto: Http://www.arran4.8m.com/ /This document is provided in HTML as well as text/ If builders built buildings the way programmers wrot