develooper Front page | perl.perl5.porters | Postings from March 2000

use() bug in 5.005_02

Thread Next
Jeff Pinyan
March 30, 2000 09:21
use() bug in 5.005_02
Message ID:
I'm not going to BOTHER trying perlbug.

jeffp@friday [12:17pm] ~ #535> perl -e 'BEGIN { use CGI; }'

jeffp@friday [12:18pm] ~ #536> perl -e 'BEGIN { use CGI }'
syntax error at /usr/local/lib/perl5/5.00502/ line 1, near "package CGI"
BEGIN failed--compilation aborted at -e line 1.

What is the reason for that?  Why does it need the semicolon there?  To my
inexperienced brain, this is baffling.

MIDN 4/C PINYAN, NROTCURPI, US Naval Reserve           
PerlMonth - An Online Perl Magazine  
The Perl Archive - Articles, Forums, etc.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About