in reply to Re: Detecting an undefined hash key
in thread Detecting an undefined hash key

Nothing special going here. But with 'getopt ("st")', you declare -s and -t to take an argument. So, if you just provide -s, the argument is undef. If you provide -s -t, -t is the argument of -s.

Replies are listed 'Best First'.
Re^3: Detecting an undefined hash key
by GrandFather (Saint) on Oct 01, 2008 at 19:05 UTC

    Doh! /me slaps forehead with a wet fish!


    Perl reduces RSI - it saves typing