Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Re: Re: Re: recomendations needed for type of data structure

by integral (Hermit)
on Feb 17, 2003 at 21:14 UTC ( #236118=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: Re: recomendations needed for type of data structure
in thread recomendations needed for type of data structure

Well assuming that $key = 'Varbind' and that $value is an array ref containing each part of the id, then you can use join:

print "$key: ".join('.',@$value)."\n";

When you use an array in a string (like "@a"), perl translates this internally into join($", @a), one can see this if you turn perl's bytecode back into source code using B::Deparse.

--
integral, resident of freenode's #perl


Comment on Re: Re: Re: Re: Re: recomendations needed for type of data structure
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (13)
As of 2016-02-11 20:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (380 votes), past polls