469,916 Members | 1,972 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,916 developers. It's quick & easy.

What am I doing wrong when using "use strict" ?

ed
Folks,

I'm attempting to write some OOP with the use strict pragma on an I'm just
not getting it to work. Here's an example

#!/usr/bin/perl -w
use strict;
use Automobile;
my $file = new Automobile;

I keep getting the error:
Bareword "Automobile" not allowed while "strict subs" in use.

The script runs fine without the use strict, so their must be something I
haven't figured out yet.

Thanks in advance!!

Ed

Jul 19 '05 #1
1 2419
"ed" <sp******@coqui.net> wrote in message news:<Ag***************@fe01.usenetserver.com>...
#!/usr/bin/perl -w
use strict;
use Automobile;
my $file = new Automobile;

I keep getting the error:
Bareword "Automobile" not allowed while "strict subs" in use.


Not from that code I think.

Please post genuine code that generates the error (see posting guidelines).

This news group does not exist (see FAQ). Please do not start threads here.
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Hal Vaughan | last post: by
40 posts views Thread by Steve Juranich | last post: by
24 posts views Thread by Rv5 | last post: by
1 post views Thread by Andy Crawford | last post: by
3 posts views Thread by ianakapilotlight | last post: by
30 posts views Thread by Medvedev | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.