Monks please help me.This is my code

#!/usr/bin/perl -w use Log::Dispatch::FileRotate; # my $file = Log::Dispatch::FileRotate->new( name => 'file1', # min_level => 'info', # filename => 'ree.log', # mode => 'append', # size => 1000, # max => 5, # ); # $file->log( level => 'info', message => "Module Testing\n");

This is the error I get

C:\Users\hpai\Desktop\perlcoading>perl -d one.pl Loading DB routines from perl5db.pl version 1.33 Editor support available. Enter h or `h h' for help, or `perldoc perldebug' for more help. Signal SEGV at C:/Perl/site/lib/Params/Validate/XS.pm line 42. require Params/Validate/XS.pm called at C:/Perl/lib/Module/Run +time.pm li ne 317 Module::Runtime::require_module('Params::Validate::XS') called + at C:/Per l/site/lib/Module/Implementation.pm line 85 Module::Implementation::__ANON__[C:/Perl/site/lib/Module/Imple +mentation. pm:87]() called at C:/Perl/lib/Try/Tiny.pm line 76 eval {...} called at C:/Perl/lib/Try/Tiny.pm line 67 Try::Tiny::try('CODE(0x2104394)', 'Try::Tiny::Catch=REF(0x20f4 +ac4)') cal led at C:/Perl/site/lib/Module/Implementation.pm line 90 Module::Implementation::_load_implementation('Params::Validate +', undef, 'ARRAY(0x20f4964)') called at C:/Perl/site/lib/Module/Implementation.p +m line 33 Module::Implementation::__ANON__[C:/Perl/site/lib/Module/Imple +mentation. pm:44]() called at C:/Perl/site/lib/Params/Validate.pm line 66 require Params/Validate.pm called at C:/Perl/site/lib/Log/Disp +atch.pm li ne 13 Log::Dispatch::BEGIN() called at C:/Perl/site/lib/Params/Valid +ate/XS.pm line 0 eval {...} called at C:/Perl/site/lib/Params/Validate/XS.pm li +ne 0 require Log/Dispatch.pm called at C:/Perl/site/lib/Log/Dispatc +h/Output.p m line 9 Log::Dispatch::Output::BEGIN() called at C:/Perl/site/lib/Para +ms/Validat e/XS.pm line 0 eval {...} called at C:/Perl/site/lib/Params/Validate/XS.pm li +ne 0 require Log/Dispatch/Output.pm called at C:/Perl/site/lib/Log/ +Dispatch/F ileRotate.pm line 6 Log::Dispatch::FileRotate::BEGIN() called at C:/Perl/site/lib/ +Params/Val idate/XS.pm line 0 eval {...} called at C:/Perl/site/lib/Params/Validate/XS.pm li +ne 0 require Log/Dispatch/FileRotate.pm called at one.pl line 2 main::BEGIN() called at C:/Perl/site/lib/Params/Validate/XS.pm + line 0 eval {...} called at C:/Perl/site/lib/Params/Validate/XS.pm li +ne 0

In reply to Re: Log rotator in perl by HariIndianMonk
in thread Log rotator in perl by HariIndianMonk

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.