- or download this
sub cprintf {system('/usr/bin/printf', @_)}
- or download this
cprintf("There are at least %'d ways to do it!\n", 42e6)
- or download this
sub cprintf {
my($fmt)= shift;
$fmt=~s/%(-?\d*)d/%'$1d/g;
system('/usr/bin/printf', $fmt, @_)
}
- or download this
system('/usr/bin/printf',
'Bash uses backtics for cmd substitution, eg: %s',
'`ls *`')
- or download this
Bash uses backtics for cmd substitution, eg: `ls *`
- or download this
system(
'/bin/printf "Bash uses backtics for cmd substitution, eg: %s" `ls *`'
)