Re: using perl references from subroutine

2008-08-21 Thread Noah
simple - that did it. of course I removed the my when defining $templateConfiguation in the for loop. thanks! Raymond Wan wrote: Hi Noah, Would defining $templateConfiguration outside of the for loop be sufficient for what you need? i.e., my $templateConfiguation; foreach my

Re: using perl references from subroutine

2008-08-20 Thread Raymond Wan
Hi Noah, Would defining $templateConfiguration outside of the for loop be sufficient for what you need? i.e., my $templateConfiguation; foreach my $templateConfigFilename (@templateConfigFilenames) { $templateConfigFilename = $TemplateDirectory/$templateConfigFilename; (my

Re: using perl references from subroutine

2008-08-19 Thread Noah
response inline below John W. Krahn wrote: Noah wrote: Hi there, Hello, I have a routine returning a perl reference and I am trying to figure out how to properly use the hash tables in the main section of my perl proggie. --- from the main program my $templateConfiguation =

Re: using perl references from subroutine

2008-08-19 Thread John W. Krahn
Noah wrote: response inline below John W. Krahn wrote: Noah wrote: I have a routine returning a perl reference and I am trying to figure out how to properly use the hash tables in the main section of my perl proggie. --- from the main program my $templateConfiguation =

Re: using perl references from subroutine

2008-08-19 Thread Noah
John W. Krahn wrote: Noah wrote: response inline below John W. Krahn wrote: Noah wrote: I have a routine returning a perl reference and I am trying to figure out how to properly use the hash tables in the main section of my perl proggie. --- from the main program my

Re: using perl references from subroutine

2008-08-18 Thread Mr. Shawn H. Corey
On Mon, 2008-08-18 at 15:10 -0700, Noah wrote: print DIFF d $key if !exists ($templateConfiguation{$templateType}{$key}); print MATCH m $key if exists ($templateConfiguation{$templateType}{$key}); Try: print DIFF d $key if !exists