> Don't understand why I'm getting a "Can't modify not in scalar assignment 
> at line 3, near "}:", when I run my cgi compiler & the script obviously 
> doesn't run in the browser.
> 
> I'm new to Perl and am attempting a script that I found in a book.  You 
> would think that it would run without modification!  :(
> 
> PLEASE HELP!!!
> 
> Craig
> 
> !#C:\Perl\Bin\Perl.exe
> 
> $content_length=$ENV{'CONTENT_LENGTH'};
> read (STDIN, $posted_information, $content_length);

The 'not' which is confusing the compiler is on the first line. Change to:

#!C:\Perl\Bin\Perl.exe

Furthermore, you're missing a backslash on the second "\d":

> $posted_information=~ s/%([\dA-Fa-f][dA-Fa-f])/pack ("C", hex ($1))/eg;
                                       ^
which could be changed to (to avoid duplication):

$posted_information=~ s/%([\dA-Fa-f]{2})/pack ("C", hex ($1))/eg;

Zoltan.


---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to