in reply to Strange finish!!
In Perl, semicolons are statement separators, not statement terminators. Since there is no statement after the last one in a file, a semicolon is not necessary. Same thing for the last statement in a block. Which is why your die doesn't need one. Add a statement after your die with no semicolon in between and perl will give you an error.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Strange finish!!
by Cap'n Steve (Friar) on Nov 08, 2007 at 05:10 UTC | |
Re^2: Strange finish!!
by narainhere (Monk) on Nov 07, 2007 at 08:17 UTC | |
by graff (Chancellor) on Nov 07, 2007 at 08:54 UTC | |
by Limbic~Region (Chancellor) on Nov 07, 2007 at 14:34 UTC | |
by blazar (Canon) on Nov 08, 2007 at 12:47 UTC | |
by zshzn (Hermit) on Nov 07, 2007 at 08:31 UTC | |
by ursus (Acolyte) on Nov 07, 2007 at 21:11 UTC |
In Section
Seekers of Perl Wisdom