in reply to Re^3: "Safe" print?
in thread "Safe" print?

And that's right where I am (CENTOS 6 packaged Perl).

I know and heartily approve the "//" operator (except when I somehow get confused and use backslashes), but don't want to have to write special code each time I print something that I can't prove is defined quickly. However, the Dumper suggestion (and related) is useful, I'm just embarrassed I didn't think of it myself (that's for complex structures! In debugging!).

Replies are listed 'Best First'.
Re^5: "Safe" print?
by ambrus (Abbot) on May 14, 2013 at 21:13 UTC
    don't want to have to write special code each time I print something

    Then write a subroutine and call that every time.