in reply to how to make this perl code run

Violating the spirit but not the letter of your challenge:

#!/usr/bin/perl -w use strict; my $str1 = hi(); my $str2 = hello(); my $str3 = hola(); sub hi { "hi" } sub hello { "hello" } sub hola { "hola" } print "$str1,$str2,$str3\n";

Replies are listed 'Best First'.
Re^2: how to make this perl code run
by davido (Cardinal) on May 16, 2013 at 14:43 UTC

    That violates the letter of the challenge; you modified something within the first five lines (added parens).


    Dave