Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 examining the Monastery: (12)
As of 2015-07-31 09:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (276 votes), past polls