If you exchange the use strict; line and the use Data::Dumper; line, does Perl then complain that it does not find Data::Dumper? ( YES )

Do you get the same error message if you do a perl -e "use strict;" from the command line? ( NO )

Please help I cant get away with this stupid windows error. I have windows 7 AS Perl 5.14.2 installed from binary .msi and Now i am compiling source code of Perl-5.14.2 with nmake command. I have VS 2008 installed with VC++. Please help me any body. Its urgent.

Commands that I tried:

D:\Perl-5.14.2\win32>perl -V:archlib -V:installsitelib

archlib='D:\Perl\lib'; installsitelib='D:\Perl\site\lib';

D:\Perl-5.14.2\win32>perl -e "use strict;"

( NO ERRORS ON DOS PROMPT )

D:\Perl-5.14.2\win32>dir D:\Perl\lib\s*.pm

Volume in drive D has no label. Volume Serial Number is E48A-1C28 Directory of D:\Perl\lib 03/19/2011 05:41 AM 25,267 Safe.pm 03/19/2011 05:41 AM 2,612 SDBM_File.pm 02/09/2010 01:34 PM 1,130 SelectSaver.pm 03/19/2011 05:41 AM 17,814 SelfLoader.pm 03/19/2011 05:41 AM 8,991 Shell.pm 03/19/2011 05:41 AM 7,933 sigtrap.pm 03/19/2011 05:41 AM 22,132 Socket.pm 02/09/2010 01:34 PM 6,289 sort.pm 07/11/2011 08:56 PM 41,314 Storable.pm 02/09/2010 01:34 PM 3,863 strict.pm 01/13/2010 03:06 PM 882 subs.pm 02/09/2010 01:34 PM 4,964 Symbol.pm 12 File(s) 143,191 bytes 0 Dir(s) 4,878,151,680 bytes free

D:\Perl-5.14.2\win32>Perl -V

Summary of my perl5 (revision 5 version 14 subversion 2) configuration +: Platform: osname=MSWin32, osvers=5.2, archname=MSWin32-x86-multi-thread uname='' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=und +ef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cl', ccflags ='-nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D +_CONSOLE - DNO_STRICT -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT +_CONTEXT - DPERL_IMPLICIT_SYS -DUSE_PERLIO -D_USE_32BIT_TIME_T', optimize='-MD -Zi -DNDEBUG -O1', cppflags='-DWIN32' ccversion='15.0.21022', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=8 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64 +', lseeksi ze=8 alignbytes=8, prototype=define Linker and Libraries: ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf -l +ibpath:"D: \Perl\lib\CORE" -machine:x86' libpth=\lib libs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib +comdlg32.l ib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid. +lib ws2_32 .lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib comctl32.l +ib msvcrt. lib perllibs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.l +ib comdlg 32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib u +uid.lib ws 2_32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib comctl +32.lib msv crt.lib libc=msvcrt.lib, so=dll, useshrplib=true, libperl=perl514.lib gnulibc_version='' Dynamic Linking: dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug -opt: +ref,icf - libpath:"D:\Perl\lib\CORE" -machine:x86' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS PERL_MALLOC_WRAP PERL_PRESERVE_IVUV PL_OP_SLAB +_ALLOC USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_PE +RL_ATOF USE_SITECUSTOMIZE Locally applied patches: ActivePerl Build 1402 [295342] Built under MSWin32 Compiled at Oct 7 2011 15:49:44 %ENV: PERL5LIB="D:/Perl/bin;D:/Perl/lib;D:/Perl/site/bin;D:/Perl/site/li +b/Perl" @INC: D:/Perl/bin D:/Perl/lib D:/Perl/site/bin D:/Perl/site/lib/Perl D:/Perl/site/lib D:/Perl/lib .


In reply to Re^2: Flummoxed by strict.pm by Anonymous Monk
in thread Flummoxed by strict.pm by CaptainRob

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.