Things with Strings
- Double-quoted strings interpolate
- $color="red";
- print "My truck is $color\n";
- Concatenate scalars
- $color="red";
- $ride="truck";
- print "My $ride is $color.\n";
- And so on..
- $pi = 3.14159265;
- twopi = $pi * 2;
| CPU: Perl, Fall 2005 | Perl, Week 1: Intro to Perl, Scalars | #25 |
| Copyright © 2005 Ian Langworth |