A hash key 'springs' into existance when you try to assign to it.#!/bin/perl -w use strict; my %hash; for my $pair (@ARGV) { my ($var, $val)= split /\s*=\s*/, $pair; $hash{$var} = $val; }
In reply to (ar0n) RE (3): Variable auto creation
by ar0n
in thread Variable auto creation
by darkomen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |