I would like to get a way where I can access the multiple values without looping.

By definition, that's impossible. It doesn't have to be a foreach loop, but a loop will be involved.

Why don't you say what you want to do? Would join be of use?


In reply to Re: access array of values without a loop by ikegami
in thread access array of values without a loop by spie287

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":