Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 contemplating the Monastery: (6)
As of 2014-07-11 10:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (224 votes), past polls