"Romeo Theriault" schreef:

> is it possible to store the
> contents of an array into a variable?

To present the data, or to reuse it later? 

  my $tmp;
  for my $i (0 .. $#array) {
    $tmp .= sprintf "%2d: %s\n",
                    $i,
                    $array[$i];
  }
  print $tmp;

or:
 
  use Data::Dumper;
  $Data::Dumper::Indent = 1;
  my $tmp = Dumper [EMAIL PROTECTED];
  print $tmp;

-- 
Affijn, Ruud

"Gewoon is een tijger."

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to