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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://278030]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-20 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found