You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Andre Landwehr <an...@gmx.net> on 2000/09/15 15:44:18 UTC

error

Hi,
I used %udat many times and so far without problems, but now I
have one: I simply assign a value from %fdat to %udat:
$udat{ImageName} = $fdat{ImageName};
$fdat{ImageName} contains a filename, e.g. "74321623782.jpg"
after that Apache hangs and /var/log/apache/error_log says:
---------
[Fri Sep 15 15:38:20 2000] [error] Can't store GLOB items at blib/lib/Storable.pm (autosplit into blib/lib/auto/Storable/_freeze.al) line 162, <GEN3> chunk 45, at /usr/lib/perl5/site_perl/5.005/Apache/Session/Serialize/Storable.pm line 21
---------

Can anybody help?

Andre


Re: error

Posted by Andre Landwehr <an...@gmx.net>.
On Fri, Sep 15, 2000 at 04:10:29PM +0200, Gerald Richter wrote:
> > $udat{ImageName} = $fdat{ImageName};
> 
> I guess this is from a file upload. CGI.pm uses some magic with globs. Try
> 
> $udat{ImageName} = scalar($fdat{ImageName}) ;

oh, thanks... sometimes I'm really too dumb to see the obvious...

Andre


Re: error

Posted by Gerald Richter <ri...@ecos.de>.
> $udat{ImageName} = $fdat{ImageName};

I guess this is from a file upload. CGI.pm uses some magic with globs. Try

$udat{ImageName} = scalar($fdat{ImageName}) ;

to convert the typeglob into a scalar value

Gerald



> $fdat{ImageName} contains a filename, e.g. "74321623782.jpg"
> after that Apache hangs and /var/log/apache/error_log says:
> ---------
> [Fri Sep 15 15:38:20 2000] [error] Can't store GLOB items at
blib/lib/Storable.pm (autosplit into blib/lib/auto/Storable/_freeze.al) line
162, <GEN3> chunk 45, at
/usr/lib/perl5/site_perl/5.005/Apache/Session/Serialize/Storable.pm line 21
> ---------
>
> Can anybody help?
>
> Andre
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
>
>
>