Common: http://www.perldoc.com/perl5.6/pod/perlop.html
print ($foo & 255) + 1, "hello";
prints the lower 8 bits of $foo and does not add 1 or print "hello" because the paran around $foo & 255 make print stop working at the ")" The 1 and "hello" are evaluated as seperate statements.
print +($foo & 255) + 1, "hello";
prints "9hello"
See
http://www.perldoc.com/perl5.6/pod/perlop.html#Terms_and_List_Operators_Leftwa
See also:
Comments:
file: /Techref/language/perl/expression.htm, 1KB, , updated: 2009/5/14 14:40, local time: 2025/3/31 07:09,
3.137.188.121:LOG IN
|
©2025 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.ecomorder.com/techref/language/perl/expression.htm"> PERL Expressions</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232! |
.