http://www.perlmonks.org?node_id=64368


in reply to SHORTER Useless code
in thread Useless .... of course !

I am sorry to disappoint you, arhuman, but the following is not shorter (94 bytes, darn scalar)... But well, it's recursive... and just another way to do it.

<code> sub _{($x,$_)=@_;s/(.*)\n/\n $1@/g;$x>40?x:_($x+2,scalar reverse'@'x$x."\n$_\n".$"x$x)}_;print <code>

Change the 40 for smaller or bigger spirals...

Replies are listed 'Best First'.
Re: Re: SHORTER Useless code
by arhuman (Vicar) on Mar 14, 2001 at 16:25 UTC
    Interesting !

    the recursive branch is now open..


    "Trying to be a SMART lamer" (thanx to Merlyn ;-)