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

Thank you Integral
One last question,

What would the syntax be if I wanted to simply print out?:

Varbind: 1.3.6.1.2.1.2.2.1.1
Thanks again, I'm slowly piecing this all together.

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: recomendations needed for type of data structure
by integral (Hermit) on Feb 17, 2003 at 21:14 UTC
    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