Strict not working. 
Author Message
 Strict not working.

I have been running perl using the -w switch but on many posts here
people advise including the line: use strict;

However when I add this into my script I get the following error
message:


6.
    BEGIN failed--compilation aborted at c:\<pathname><scriptname>
line 6.



      print "<P>" . $inc . "</P>";
    }

the following is printed:

    ..\lib\i386-win32
    ..\lib
    .

FYI when I run -v I get:

Perl for Win32 Build 316 - Built 09:44:44 Mar 13 1998
This is Perl, version 5.003_07
Copyright 1987-1996, Larry Wall
        + suidperl security patch

Perl is installed in C:\Perl and the path to strict.pm is
C:\Perl\lib\strict.pm



Mon, 19 Apr 2004 20:32:39 GMT  
 Strict not working.

Mark> I have been running perl using the -w switch but on many posts here
Mark> people advise including the line: use strict;

Mark> However when I add this into my script I get the following error
Mark> message:


Mark> 6.
Mark>     BEGIN failed--compilation aborted at c:\<pathname><scriptname>
Mark> line 6.



Mark>       print "<P>" . $inc . "</P>";
Mark>     }

Mark> the following is printed:

Mark>     ..\lib\i386-win32
Mark>     ..\lib
Mark>     .


it is safe to say that it is completely broken.

Mark> FYI when I run -v I get:

Mark> Perl for Win32 Build 316 - Built 09:44:44 Mar 13 1998
Mark> This is Perl, version 5.003_07
Mark> Copyright 1987-1996, Larry Wall
Mark>         + suidperl security patch

It is better to use 'perl -V' - it gives much more information

Mark> Perl is installed in C:\Perl and the path to strict.pm is
Mark> C:\Perl\lib\strict.pm

It seems that your perl is just broken if it doesn't include strict.pm

it is better for you take "good" Perl from ActiveState.

--
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
| Ilya Martynov (http://martynov.org/)          TIV.net (http://tiv.net/) |
| GnuPG 1024D/323BDEE6 D7F7 561E 4C1D 8A15 8E80  E4AE BE1A 53EB 323B DEE6 |
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



Tue, 20 Apr 2004 01:08:53 GMT  
 Strict not working.

Quote:


> It is better to use 'perl -V' - it gives much more information


When I put the -V in and ran my script I got the following error
message:

Can't emulate -V on #! line at c:\<pathname><scriptname> line 1.

Quote:
> It seems that your perl is just broken if it doesn't include strict.pm

> it is better for you take "good" Perl from ActiveState.

Is there anyway to fix it without having to download another copy and
re-installing Perl. This would be a lot of hassle because I don't have
sufficient system access to install things myself.


Tue, 20 Apr 2004 17:45:34 GMT  
 Strict not working.

Quote:

>> It is better to use 'perl -V' - it gives much more information


Mark> When I put the -V in and ran my script I got the following error
Mark> message:

Mark> Can't emulate -V on #! line at c:\<pathname><scriptname> line 1.

Just run 'perl -V'. Without any scripts. It will print information

Mark> Is there anyway to fix it without having to download another copy and
Mark> re-installing Perl. This would be a lot of hassle because I don't have
Mark> sufficient system access to install things myself.



perlrun'.

--
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
| Ilya Martynov (http://martynov.org/)          TIV.net (http://tiv.net/) |
| GnuPG 1024D/323BDEE6 D7F7 561E 4C1D 8A15 8E80  E4AE BE1A 53EB 323B DEE6 |
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



Wed, 21 Apr 2004 17:55:04 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. use strict not working?

2. works without strict but not with why ????

3. use strict refs not so strict?

4. Send mail script not working in 2nd server but working in 1st server

5. Send mail script not working in 2nd server but working in 1st server

6. DBD::XBase 'not' not working

7. Not loading unneeded modules with use strict?

8. use of eval and strict does not correctly set $@

9. strict.pm, $a|$b not required to conform

10. why not use(strict)?

11. why does strict not warn about shaddowing declarations ?

12. use strict sure isn't very strict

 

 
Powered by phpBB® Forum Software