- or download this
sub my_lc_warn {
not defined wantarray and warnings::warnif("void", "my_lc used in vo
+id context");
...
return map lc $_,@_;
}
}
- 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;
}
- or download this
my $lc=lc("A","B");
- or download this
my $timestr=strftime(@$self);
- or download this
my $timestr=POSIX::strftime(@{$self}[0..9]);
- or download this
my @strftime=@{$self}[0..9];
my $timestr=POSIX::strftime(@strftime);