Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Need help shortening this

by jonadab (Parson)
on Nov 15, 2003 at 23:27 UTC ( [id://307398]=note: print w/replies, xml ) Need Help??


in reply to Need help shortening this

I get the following error on both ActivePerl 5.8.0 (WinMe) and Perl 5.6.0 (Linux Mandrake):

Undefined subroutine &main:: called at tempfile.pl line 4.

$;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/

Replies are listed 'Best First'.
Re: Re: Need help shortening this
by jynx (Priest) on Nov 18, 2003 at 21:28 UTC
    there can't be any whitespace in $z. If you copy/paste, delete any such white space before running the code and that should work. If it doesn't then . . . i don't know :-(

    jynx

Re: Re: Need help shortening this
by ambrus (Abbot) on Nov 19, 2003 at 11:30 UTC

    I've got that too first, but then I removed all newlines, and it worked that way.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-20 00:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found