How can I store entire contents of a Perl array to a scalar variable? -


How can I store all the contents of an array in a scalar variable? Example:

$ my code = do $ {local $ /; & Lt; File handle & gt; };

It works fine for this file handles but I need it for an array.

My $ str = join ", @array;

Comments

Popular posts from this blog

Indexing in SQL -

objective c - iPhone and it's wireless area -

multithreading - Do lock objects in Java need to be static? -