Compare commits
No commits in common. "17215128f038bcdf444e5a0936df8ee9b8acd42d" and "a16d53070c5ee3846a8e8b27640e7322c6d77e8a" have entirely different histories.
17215128f0
...
a16d53070c
|
@ -1,6 +0,0 @@
|
|||
sub MAIN ($num1, $num2) {
|
||||
say "sum is {$num1 + $num2}";
|
||||
say "difference is {$num1 - $num2}";
|
||||
say "product is {$num1 * $num2}";
|
||||
say "quotient is {$num1 / $num2}";
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
sub MAIN (
|
||||
$num1, #= Number to perform arithmatic on
|
||||
$num2 #= Second number to perform arithmatic on
|
||||
) {
|
||||
die "unexpected input" unless is-numeric($num1) and is-numeric($num2);
|
||||
say "sum is {$num1 + $num2}";
|
||||
say "difference is {$num1 - $num2}";
|
||||
say "product is {$num1 * $num2}";
|
||||
say "quotient is {$num1 / $num2}";
|
||||
}
|
||||
|
||||
sub is-numeric ($num) {
|
||||
return val($num) ~~ Numeric;
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
sub MAIN (
|
||||
$my-string #= String to count characters/display
|
||||
) {
|
||||
say "$my-string has {$my-string.chars} characters";
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
sub MAIN () {
|
||||
# Unset PATH for shell safety (pg. 68)
|
||||
%*ENV<PATH> = '';
|
||||
print Q :x 'C:\Windows\System32\hostname.exe' if $*DISTRO.is-win;
|
||||
print Q :x '/bin/hostname' unless $*DISTRO.is-win;
|
||||
|
||||
#avoid variable inputs for shell scripts
|
||||
#qqx/date $my-new-date/
|
||||
#my $my-new-date = '; /bin/rm -rf';
|
||||
}
|
Loading…
Reference in a new issue