No such thing as a small change | |
PerlMonks |
Re: Testing for empty stringby chip (Curate) |
on Mar 19, 2004 at 02:58 UTC ( [id://337881]=note: print w/replies, xml ) | Need Help?? |
I use length():
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 Section
Seekers of Perl Wisdom
|
|