In Perl, the following evaluate to false in conditionals:
0
'0'
undef
'' # Empty scalar
() # Empty list
('')
The rest are true. There are no barewords for true
or false
.
More Related Contents:
- What does !! (double exclamation point) mean?
- Why does !1 give me nothing in Perl?
- Convert Bash script to Perl/VBS/any other windows compatible language [closed]
- Redirecting the perl script
- How can I troubleshoot my Perl CGI script?
- How is Perl’s @INC constructed? (aka What are all the ways of affecting where Perl modules are searched for?)
- How can I install Perl modules without root privileges?
- How can I require an optional Perl module if installed?
- Specifying file to process to Perl one-liner
- How do I run a Perl script from within a Perl script?
- Perl flags -pe, -pi, -p, -w, -d, -i, -t?
- How should I use the “my” keyword in Perl?
- What pseudo-operators exist in Perl 5?
- How does double arrow (=>) operator work in Perl?
- Why are Perl source filters bad and when is it OK to use them?
- Perl 5.20 and the fate of smart matching and given-when
- How can I convert the stringified version of array reference to actual array reference in Perl?
- How does Perl parse unquoted bare words?
- Perl build, unit testing, code coverage: A complete working example
- In Perl, how do I change, delete, or insert a line in a file, or append to the beginning of a file?
- In Perl, how can I find the index of a given value in an array?
- How can I run a system command in Perl asynchronously?
- How do I break out of a loop in Perl?
- Hidden features of Perl?
- “inappropriate ioctl for device”
- In Perl, how can I check from which module a given function was imported?
- How can I verify that a value is present in an array (list) in Perl?
- Perl Subroutine Prototyping — The correct way to do it
- Why do hash keys have different order when printing?
- How can I manually interpolate string escapes in a Perl string?