hakkr has asked for the wisdom of the Perl Monks concerning the following question:
What is the purpose/point/benefit of tacking a 1; onto the end of all packages. It seems unique to the Perl language and looks really weird. I know it's to make packages evaluate as true but why do they have to be true?
If you can never leave it off why give the programmer the labour of adding it :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Appending 1 to package
by jwest (Friar) on Jan 08, 2002 at 21:46 UTC | |
|
Re: Appending 1 to package
by merlyn (Sage) on Jan 08, 2002 at 21:46 UTC | |
|
Re: Appending 1 to package
by talexb (Chancellor) on Jan 08, 2002 at 23:24 UTC |