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.
In reply to Re^2: Regexp and reading a file n-lines at time
by epimenidecretese
in thread Regexp and reading a file n-lines at time
by epimenidecretese
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |