Using 
  perl v5.6.1 on Solaris.
  use warnings;
  use strict;

I've got a hash of lists that I'm looping through:


foreach $List (sort keys %HashofLists)
{
   print "Values for key \"$List\":\n";
   map print ("\t\"$_\"\n"), @{$HashofLists{$List} };
}


This works just fine, except that I am getting the following complaint
when I run the program,

   print (...) interpreted as function at verify_lists.pl line 55.

Line 55 is the "map print" line, above.  

This worked w/o complaint (I think!) back in perl 5.001, so my assumption 
is that v5.6.1 now requires a syntactically different way of writing this out?

Since it works as expected, and I don't want the complaint to stdout/stderr, 
how would I write this such that perl will not complain?

Thanks,
deb



-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
          There are 010 types of people in the world:
      those that understand binary, and those that don't.
τΏτ
 ~ 

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to