Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Can a defined value be of zero length?

by tobyink (Canon)
on Apr 19, 2014 at 09:21 UTC ( [id://1082878]=note: print w/replies, xml ) Need Help??


in reply to Can a defined value be of zero length?

use strict; use warnings; my $value = q(); printf("Here is a string: \"%s\"\n", quotemeta($value)); printf("Is it defined? %s\n", defined($value) ? "Yes" : "No"); printf("What is its length? %d\n", length($value));
use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-20 00:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found