in reply to A perl riddle #1

Both should not be used unless you've just had a specific success/failure. So both often gets used in cases where they aren't guaranteed to be set to something appropriate (whatever they were set to previously).

                - tye