Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: How to retrieve element in hash?

by choroba (Bishop)
on Nov 30, 2012 at 10:27 UTC ( #1006449=note: print w/replies, xml ) Need Help??


in reply to How to retrieve element in hash?

Works for me:
#!/usr/bin/perl use warnings; use strict; my $recref = { DATA => { FIELD_DELIMITER => '<-->', FILE_NAME => 'SCRAMBLETEST2.CSV', RECORD_NAME => 'DATA', RECORD_SELECTOR => '^1', SECTION_NAME => undef, }}; my $recname = 'DATA'; print $recref->{$recname}{FIELD_DELIMITER};
Output:
<-->
Use Data::Dumper to check that your structures really contain what you think.
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006449]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2017-12-13 23:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (381 votes). Check out past polls.

    Notices?