in reply to Re: Regexp and reading a file n-lines at time
in thread Regexp and reading a file n-lines at time
I got interesting results with hash of arrays,but I don't know how to access the single titles and then each element of the arrays into them.
I think I'm working with anonymous hashes and arrays,right ? In this case,how do I access to an anonymous hash ?
$HASH->{$Title} = []; This is just here to initialize an empty array ?
I'm looking for something like:
my $abstract=shift @{$HASH->{$Title}->{???}}#here I need to access eac +h single title in order to get the first element of each (anonymous) +hash print "<abstract>"."$abstract"."</abstract>\n"; #here I should print all the element between the first and the last o +ne of the array in each single hash my $procedure=pop @{$HASH->{$Title}}#same as before print "<procedure>"."$procedure"."</procedure>\n";
One of Crete's own prophets has said it: 'Cretans are always liars, evil brutes, lazy gluttons'.
He has surely told the truth.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Regexp and reading a file n-lines at time
by epimenidecretese (Acolyte) on Feb 03, 2010 at 14:22 UTC | |
by hbm (Hermit) on Feb 03, 2010 at 18:24 UTC |