suppress warning in PLP::Backend::CGI
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 28 May 2008 10:07:09 +0000 (10:07 +0000)
committerMischa POSLAWSKY <perl@shiar.org>
Wed, 28 May 2008 10:49:47 +0000 (10:49 +0000)
Add parentheses to my $scalar argument to read() to verify it's really
only a single variable.  Works the same, but fixes a warning if run -w.

lib/PLP/Backend/CGI.pm

index e4bcf1edd3d5d0e019df5133faeb68dadfd79ebc..5d45500403a6cc4d51074c5808305f749d534554 100644 (file)
@@ -61,7 +61,7 @@ sub init {
 
 sub read ($) {
        my ($bytes) = @_;
-       read *STDIN, my $data, $bytes;
+       read *STDIN, my ($data), $bytes;
        return $data;
 }