Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Testing for empty string

by chip (Curate)
on Mar 19, 2004 at 02:58 UTC ( [id://337881]=note: print w/replies, xml ) Need Help??


in reply to Testing for empty string

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://337881]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-04-24 06:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found