diff options
| -rw-r--r-- | challenge-029/dave-cross/perl5/ch-2.pl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/challenge-029/dave-cross/perl5/ch-2.pl b/challenge-029/dave-cross/perl5/ch-2.pl new file mode 100644 index 0000000000..3b69712105 --- /dev/null +++ b/challenge-029/dave-cross/perl5/ch-2.pl @@ -0,0 +1,16 @@ +#!/usr/bin/perl + +use strict; +use warnings; + +use Inline C => <<'END_OF_C'; + +void hello(char* name) { + printf("Hello, %s\n", name); +} + +END_OF_C + +my $name = shift || 'Perl'; + +hello($name); |
