
| Contents |
|||||||||||||||
| [an error occurred while processing this directive] |
2.5 Output of Scalar Data
To output a scalar, you can use the
use strict; my $str = "Howdy, "; my $name = "Joe.\n"; print $str, $name; # Prints out: Howdy, Joe.<NEWLINE> my $f = 3e-1; printf "%2.3f\n", $f; # Prints out: 0.300<NEWLINE> |