http://www.perlmonks.org?node_id=439160


in reply to Re: This is not a pipe
in thread This is not a pipe

If you're worried about errors, I recommend instead:

! UNIVERSAL::isa($this, 'pipe')

Just in case there's a possibility that $this might be undef, or an unblessed scalar.

Replies are listed 'Best First'.
Re^3: This is not a pipe
by hardburn (Abbot) on Mar 14, 2005 at 14:13 UTC

    For poetry, I'm not worried about it. Syntax correctness is all that matters, and putting UNIVERSAL in there just adds clutter.

    "There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.