Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: how to make this perl code run

by choroba (Chancellor)
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:
echo 1 > perl -I.
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: how to make this perl code run
by LanX (Chancellor) 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 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,, 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 would not do :-)

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

        This untested code should work ...

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1033838]
[LanX]: choroba: subversive (as usual ;)
[james28909]: i dunno, if i didnt have so little experience in linux i would swap. but it would be to much of a learning curve for me right now.
[choroba]: Low-end is defined as the Perl that generates millions of income
[choroba]: sorry, that's high-end, of coursse
[choroba]: low end, in my talk, will be code that "we don't touch because it works" and noone knows why
[choroba]: I want to present the most bizzare bugs and misfeatures I met when working for a large financial institution
[choroba]: I already gave a similar talk to my friends in a pub and at an internal conference at work and people liked it, so maybe...
[choroba]: LanX: That's the heritage, I can't do anything else
[RonW]: Sounds like some system my employer has "It does exactly what we need it to do and can't afford to risk anything we can't prove is 100% compatible"
[marto]: choroba sounds interesting

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (11)
As of 2017-05-22 21:35 GMT
Find Nodes?
    Voting Booth?