Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Magic q JAPH

by liz (Monsignor)
on Sep 28, 2003 at 08:52 UTC ( #294729=note: print w/ replies, xml ) Need Help??


in reply to Magic q JAPH

Hmmm... I either get:

Invalid range "@-" in transliteration operator
or
Undefined subroutine &main::pnirt called
depending on the version of Perl I use.

Liz

Update:
Indeed, as davido points out, it works if you put it all on one line. And I was thinking a JAPH should work just like that. Without "little assembly required"?


Comment on Re: Magic q JAPH
Select or Download Code
Re: Re: Magic q JAPH
by davido (Archbishop) on Sep 28, 2003 at 09:08 UTC
    I had to paste the individual lines all onto one line before I could get it to run. Once you've done that, you can run it through B::Deparse to get an idea of where it's safe to insert line breaks. Too bad the OP didn't break it at safe spots rather than stress out over trying to keep it to 40 columns.

    But then again, it can be confusing getting used to the text entry box at first. It wraps at 58 characters, making it tricky, especially for new monks, to know what to do about long lines.

    UPDATE: The original post has been fixed. Well done!

    Dave

    "If I had my life to do over again, I'd be a plumber." -- Albert Einstein

      No offense, but why are you cutting and pasting when they have that nice little link that says, "Download code"?

        Anonymous Monk said, No offense, but....

        No offense taken.

        What you are simply misunderstanding is that when first posted, this well-done JAPH was cut into about eight rows of 40 columns. Once downloaded with the Download Code option that you mentioned, one still had to cut-and-paste (or otherwise manipulate) those eight lines all onto one line before it would work, since the line-breaks in the original version of the post broke the JAPH.

        The problem in the original post has since been corrected, and now the "Download Code" link produces code that will actually run. (Kudos to the original poster for fixing the problem).

        Dave

        "If I had my life to do over again, I'd be a plumber." -- Albert Einstein

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2014-04-19 09:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (478 votes), past polls