Hi Monks,
When i run the following code,as .pl file it is working fine.When I convert this perl file to exe file,it is giving the following error,see the code below,
#!c:/perl/bin;
use File::Find;
use strict;
use warnings;
my $datetimeflag;
foreach my $dir (@INC){
my $datetime='C:/Perl/site/lib/DateTime.pm';
find (sub {
if( $datetime eq "$File::Find::name" ){
print " Module $File::Find::name is found\n" ;
$datetimeflag=1;
}
},$dir);
}
if(!$datetimeflag){
print"Module DateTime is not Installed\n";
}
The following error message comes when I run the converted exe file,
C:\Perl\bin>onemod.exe
Can't stat CODE(0xcea854): No such file or directory
at script/onemod.pl line 15
Module DateTime is not Installed
Monks suggest me why this error comes?
Thanks and Regards,
madtoperl.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.