sub my_lc_warn {
not defined wantarray and warnings::warnif("void", "my_lc used in void context");
unless (wantarray) {
@_>1 and warnings::warnif("my_lc called in scalar context with extra arguments (".join(",",@_).")");
return lc shift;
} else {
return map lc $_,@_;
}
}
####
sub my_lc {
not defined wantarray and warnings::warnif("void", "my_lc used in void context");
return wantarray ? map lc $_,@_ : lc shift;
}
####
my $lc=lc("A","B");
####
my $timestr=strftime(@$self);
####
my $timestr=POSIX::strftime(@{$self}[0..9]);
####
my @strftime=@{$self}[0..9];
my $timestr=POSIX::strftime(@strftime);