jcmmat has asked for the wisdom of the Perl Monks concerning the following question:
trying to write a simple/good data loader for generic CSV files, I came up with this idea to specifically do it with symbolic links
I explain :
@test=(11,22,33,44); @Fld=('LCD','XCOORD','Y','Name'); @Data{@Fld}= @test; print "Y($Data{'Y'}) N($Data{'LCD'})\n"; # until here all works fine ${$Fld[2]}=$test[2]; # <--- works ${$Fld[3]}=$test[3]; # <--- works ${@Fld}=@test; # <--- does NOT work, why ?! print "Y($Y) N($Name)\n";
thx in advance for any suggestion
kind regards
jc
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: symbolic reference & loading hashes
by ikegami (Patriarch) on Jul 20, 2007 at 16:07 UTC | |
|
Re: symbolic reference & loading hashes
by neosamuri (Friar) on Jul 20, 2007 at 16:01 UTC | |
by ikegami (Patriarch) on Jul 20, 2007 at 16:39 UTC |