Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: how to make this perl code run

by hdb (Prior)
on May 16, 2013 at 14:32 UTC ( #1033844=note: print w/ replies, xml ) Need Help??


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";


Comment on Re: how to make this perl code run
Download Code
Re^2: how to make this perl code run
by davido (Archbishop) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1033844]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2015-07-01 23:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (25 votes), past polls