if (length($rc=$ref->getc)) { ... }
But if that's the standard getc() then you probably want defined() instead.
-- Chip Salzenberg, Free-Floating Agent of Chaos
In reply to Re: Testing for empty string
by chip
in thread Testing for empty string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |