Beatnik has asked for the wisdom of the Perl Monks concerning the following question:
Output is: $VAR1 = { 'text' => 'session', 'file' => 'main' };#!/usr/bin/perl use strict; use CGI qw(param header); use Data::Dumper; my @params = qw(main); my $hash = {"file"=>shift(@params),"text"=>param("lite"),"session"=>pa +ram("session")}; print header; print Dumper $hash;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Referenced Hash
by Joost (Canon) on May 14, 2002 at 13:26 UTC |