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?
In Section
Seekers of Perl Wisdom