in reply to RE: Re: Variable auto creation
in thread Variable auto creation
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; }
|
|---|