- or download this
-- def_macro hello
my $name = shift || "world";
print "Hello $name!";
- or download this
-- hello
- or download this
-- def_macro hello
my @in = map { chomp;length($_) ? $_ :() } (@ARGV,<STDIN>);
chomp(@in);
@in = "world" unless @in;
print "Hello $_" for @in;
- or download this
-- hello me
myself
I
- or download this
Hello me
Hello myself
Hello I
- or download this
#!/usr/bin/perl -l
...
__END__
- or download this
-- def_macro eval
eval join "",<>