A Common Mistake
- What's wrong here?
my @lines = <STDIN> print "@lines";
- Since lines is interpolated into the string, they're separated by spaces, and become indented after the first!
line1 line2 line3 ...
| CPU: Perl, Fall 2005 | Perl, Week 4: More Arrays, Context, Subroutines, Lexical Variables | #15 |
my @lines = <STDIN> print "@lines";
line1 line2 line3 ...
| Copyright © 2005 Ian Langworth |