Help for this page

Select Code to Download


  1. or download this
    sub my_lc_warn {
      not defined wantarray and warnings::warnif("void", "my_lc used in vo
    +id context");
    ...
         return map lc $_,@_;
      }
    }
    
  2. or download this
    sub my_lc {
      not defined wantarray and warnings::warnif("void", "my_lc used in vo
    +id context");
      return wantarray ? map lc $_,@_ : lc shift;
    }
    
  3. or download this
    my $lc=lc("A","B");
    
  4. or download this
    my $timestr=strftime(@$self);
    
  5. or download this
    my $timestr=POSIX::strftime(@{$self}[0..9]);
    
  6. or download this
    my @strftime=@{$self}[0..9];
    my $timestr=POSIX::strftime(@strftime);