[Courses] [Perl] exercise answers...
Laurel Fan
laurel at sdf.lonestar.org
Mon Mar 17 11:04:20 EST 2003
On the subject of 'verbatim' and "interpreted" strings:
On Sat, Mar 15, 2003 at 11:38:39AM -0500, Morgon Kanter wrote:
> 2)
> $var = 23 + 28 + 31 + 17 + 1;
> $var /= 5;
> print $var . "\n";
Here you could also do:
print "$var\n";
because $variables within "double quote strings" are also interpreted.
--
laurel at sdf.lonestar.org
http://dreadnought.gorgorg.org
More information about the Courses
mailing list