in reply to Re: Alternative to bytes::length()
in thread Alternative to bytes::length()
Seems like ne "" is what I was looking for. :)
The !! construct won't work because certain strings with lengths can be false:
marvin@smokey:~ $ perl -le 'print "true" if !!"0";' marvin@smokey:~ $ perl -le 'print "true" if !!"1";' true
What did you mean by "premature", though?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Alternative to bytes::length()
by BrowserUk (Patriarch) on Dec 23, 2009 at 06:16 UTC | |
by tye (Sage) on Dec 23, 2009 at 11:39 UTC | |
by BrowserUk (Patriarch) on Dec 23, 2009 at 13:40 UTC | |
by creamygoodness (Curate) on Dec 23, 2009 at 16:09 UTC | |
by BrowserUk (Patriarch) on Dec 23, 2009 at 16:58 UTC |