in reply to Re: Re: Reliably checking that something doesn't exist
in thread Reliably checking that something doesn't exist
is the variable being declared inside the loop, or outside in which case it may be retaining values.#!/usr/bin/perl -w use strict; use Data::Dumper; $_ = { foo=>1, bar=>2, baz=>3}; print Dumper $_; print "Wahey!\n" if exists($_->{foo})
--
Brother Frankus.
¤
|
|---|