RosettaCodeData/Task/Interactive-programming-repl-/Perl/interactive-programming-repl--2.pl

8 lines
203 B
Perl
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
$ perl
# Write the script here and press Ctrl+D plus ENTER when finished (^D means Ctrl+D):
sub f {my ($s1, $s2, $sep) = @_; $s1 . $sep . $sep . $s2};
print f('Rosetta', 'Code', ':');
^D
Rosetta::Code
$