jcwren has asked for the wisdom of the Perl Monks concerning the following question:
Anyone got any good ideas on this? Besides using tie() to every variable I might possibly reference... And why the perl interpeter couldn't print *what* variable is uninitialized?#!/usr/local/bin/perl -w use strict; { test ('arf', undef, 'dog'); } sub test { @_ == 3 or die "Incorrect number of arguments"; my ($a, $b, $c) = @_; my %hash = ('arf' => {'spot' => {'dog' => 3}}); print $hash {$a}->{$b}->{$c}; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Tying events to perl warnings and errors
by Shendal (Hermit) on Sep 13, 2000 at 23:00 UTC | |
by Adam (Vicar) on Sep 13, 2000 at 23:37 UTC | |
by merlyn (Sage) on Sep 13, 2000 at 23:45 UTC | |
by Adam (Vicar) on Sep 13, 2000 at 23:53 UTC | |
by jcwren (Prior) on Sep 14, 2000 at 00:17 UTC | |
by reptile (Monk) on Sep 14, 2000 at 00:23 UTC | |
by geektron (Curate) on Sep 13, 2000 at 23:37 UTC |