Help for this page

Select Code to Download


  1. or download this
    Bareword found where operator expected at /home/tatsu/Perl/MyLog/MyLog
    +.pm line 36, near "} encode"
        (Missing operator before encode?)
    syntax error at /home/tatsu/Perl/MyLog/MyLog.pm line 36, near "} encod
    +e"
    Compilation failed in require at logtest.pl line 6.
    BEGIN failed--compilation aborted at logtest.pl line 6.
    
  2. or download this
    use utf8;
    use Time::Piece;
    ...
    }
    
    1;
    
  3. or download this
    sub log {
      my $self = shift;
    ...
    }
    
    1;
    
  4. or download this
    use strict;
    use warnings;
    ...
    $mylog->log();
    $mylog->log('');
    $mylog->log('a', 'b');