Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Embperl
Problem with %udat and references
 

Index | Next | Previous | View Flat


embperl at thefreecat

Apr 12, 2012, 7:02 AM


Views: 649
Permalink
Problem with %udat and references

Hello,

I have this simple code :

[.-
$req = shift;
@tmp=("1","a","zzz");
$udat{verdict} = \@tmp; # <- this doesn't work
# $udat{verdict} = ["1","bla","x"]; # <- this works
-]
<script>
document.location="somewhere.html";
</script>

When I reach somewhere.html, $udat{verdict} is populated only when the second line
is active (the one explicitly defining the arrayref as ["1","bla","x"]).
When I try with a reference to @tmp it is just a reference to an empty array.

What am I missing ? Anyone else experimenting such behaviour ?

--
Jean-Christophe Boggio -o)
embperl [at] thefreecat /\\
Independant Consultant and Developer _\_V

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl

Subject User Time
Problem with %udat and references embperl at thefreecat Apr 12, 2012, 7:02 AM
    Re: Problem with %udat and references kolikov at free Apr 13, 2012, 1:54 AM
        Re: Problem with %udat and references embperl at thefreecat Apr 13, 2012, 3:41 AM
    RE: Problem with %udat and references richter at ecos Apr 16, 2012, 5:36 AM
    Re: Problem with %udat and references embperl at thefreecat Apr 16, 2012, 7:06 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.