On Mon Aug 22 16:27:42 2011, rsimoes wrote:
Show quoted text>
> rsimoes@desktop:~$ perl -v
>
> This is perl 5, version 14, subversion 1 (v5.14.1) built for x86_64-linux
>
> ...
>
> rsimoes@desktop:~$ perl -MBusiness::PayPal::API -e 1
> Use of qw(...) as parentheses is deprecated at
> /home/rsimoes/opt/perlbrew/perls/perl-
> 5.14.1/lib/site_perl/5.14.1/Business/PayPal/API.pm line 246.
I'd also love to see this corrected. From perldiag:
Use of qw(...) as parentheses is deprecated
(D deprecated) You have something like foreach $x qw(a b c) {...} , using a qw(...) list literal
where a parenthesised expression is expected. Historically the parser fooled itself into
thinking that qw(...) literals were always enclosed in parentheses, and as a result you could
sometimes omit parentheses around them. (You could never do the foreach qw(a b c) {...} that
you might have expected, though.) The parser no longer lies to itself in this way. Wrap the list
literal in parentheses, like foreach $x (qw(a b c)) {...} .