...
/Numeric, String, and Boolean Context
Numeric, String, and Boolean Context
Learn about numeric, string, and boolean contexts in Perl.
We'll cover the following...
Value context
Perl’s other context—value context—influences how Perl interprets a piece of data. Perl can figure out if we have a number or a string and convert data between the two types. In exchange for not having to declare explicitly what type of data a variable contains or a function produces, Perl’s value contexts provide hints about ...