Rosetta Code/Run examples: Difference between revisions

Content added Content deleted
m (→‎{{header|Perl 6}}: punctuation)
m (→‎{{header|Perl 6}}: Update demonstration task to reflect current code)
Line 951: Line 951:
{{out}} with command line: '''perl6 RC-run.p6 -q "Determine if a string is numeric"'''
{{out}} with command line: '''perl6 RC-run.p6 -q "Determine if a string is numeric"'''
<pre>Retrieving tasks
<pre>Retrieving tasks
1 Determine if a string is numeric
1) Determine if a string is numeric
Getting code from: http://rosettacode.org/wiki/Determine_if_a_string_is_numeric#Perl_6
Getting code from: http://rosettacode.org/wiki/Determine_if_a_string_is_numeric#Perl_6


Line 957: Line 957:


Command line: perl6 Determine_if_a_string_is_numeric.p6
Command line: perl6 Determine_if_a_string_is_numeric.p6

Coerce Don't coerce
Coerce Don't coerce
String whitespace whitespace
String whitespace whitespace
Line 976: Line 977:
<0o18> False False
<0o18> False False
<2+5i> True True
<2+5i> True True
<True> False False
<False> False False
<Inf> True True
<NaN> True True
<0x10.50> True True
<0b102> False False
<0o_5_3> True True
<௫௯> True True
< 12 > True True
<1 1 1> False False
<1 1 1> False False
<> True False
<> True False
< > True False
< > True False


Done Determine_if_a_string_is_numeric
Done task #1: Determine_if_a_string_is_numeric - wallclock seconds: 0.171
===============================================================================</pre>
===============================================================================</pre>
Or, if the full %resource hash is loaded it will automatically feed input parameters to tasks that require them:<br>
Or, if the full %resource hash is loaded it will automatically feed input parameters to tasks that require them:<br>
Line 1,034: Line 1,044:
false
false


Done task #1: Determine_if_a_string_is_numeric1 - wallclock seconds: 0.15</pre>
Done task #1: Determine_if_a_string_is_numeric1 - wallclock seconds: 0.15
===============================================================================</pre>


=={{header|Run BASIC}}==
=={{header|Run BASIC}}==