Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: recursive complex structure or something like that?

by diotalevi (Canon)
on Jul 26, 2003 at 02:20 UTC ( #278030=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %dict; # A reverse index on %dict by id.
    while (my $line = <$fh>) {
        my ( $id, $parent, $term ) = split ' ', $line, 3; # Fixed from -3 
    +per sauoq
    ...
    
    use Data::Dumper;
    print Dumper( \ %dict );
    
  2. or download this
    use Util::Scalar 'weaken';
    my %dict; # A reverse index on %dict by id.
    while (my $line = <$fh>) {
    ...
    
    use Data::Dumper;
    print Dumper( \ %dict );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://278030]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2019-10-17 13:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?