Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Perl: the Markov chain saw
 
PerlMonks  

Re: how to make this perl code run

by choroba (Abbot)
on May 16, 2013 at 14:12 UTC ( #1033838=note: print w/ replies, xml ) Need Help??


in reply to how to make this perl code run

I can make it compile and run without touching the programme at all:

لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re: how to make this perl code run
Download Code
Re^2: how to make this perl code run
by LanX (Abbot) on May 16, 2013 at 16:01 UTC
    Well I consider any command line tricks cheating, cause otherwise you could also start calling a recompiled Perl.

    Did you try putting the logic in a BEGIN block... (don't know if it does the trick).

    But why did you call the OP's script 1.pl? Doesn't make it easier to understand what you are doing...

    Cheers Rolf

    ( addicted to the Perl Programming Language)

    PS: I'd try a source-filter approach! =)

      I tried putting the logic into a BEGIN block, but without success. It is perhaps too late on line 6.

      When testing code samples, I name them 1.pl, 2.pl, 3.pl and so on. The next day, I remove all of them and start again from 1. It is shorter than using the node's id in the name, but still lets me keep several answers ready for improvement if there are objections, which simple junk.pl would not do :-)

      لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

        This untested code should work ...

        ... BEGIN { sub hi {}; sub hello {}; sub hola {}; }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2014-04-21 05:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (491 votes), past polls