in reply to My Second, first japh
First of all, welcome to the OC jfredett.
Not every JAPH has to be obfuscated and I like where you are going with this. I think some perlism would improve it though. Removing parens and the close statement ( perl doesn't need them.)
I had to put in the 'foo' cause I'm on unix. Now, adding a subroutine.$Just = 'foo'; open(JAPH, $Just); @another = split(/\s/, <JAPH>); $Per +l = ""; $h acker =","; $Perl =join " ",(substr $another[0],1),(substr $another[5],1),(substr +$another[9 ],1),(substr $another[12],1); print $Perl . $hacker;
Kind of has a stutter now doesn't it? Continuing on boldly. Playing with whitespace:$Just = 'foo'; open(JAPH, $Just); @another = split(/\s/, <JAPH>); $Per +l = ""; $h acker =","; sub Just { substr shift, 1 }; $Perl =join " ", Just($another[0]), Just($another[5]), Just($another[9 +]), Just ( $another[12]); print $Perl . $hacker;
There, that's better. Not there yet. I would like it to be shorter but it's late here.$Just = 'foo'; open JAPH, $Just; @another = split /\s/, <JAPH>; $Perl += ""; $hac ker =","; sub Just { substr shift, 1 }; $Perl = join " ", Just ($another[0]), Jus +t($ another [6]), Just($another [11]), Just ($another [14]); print $ Perl .$ hacker,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: My Second, first japh
by jfredett (Beadle) on Aug 11, 2006 at 01:59 UTC | |
by jfredett (Beadle) on Aug 11, 2006 at 04:12 UTC | |
by starbolin (Hermit) on Aug 11, 2006 at 19:39 UTC | |
by starbolin (Hermit) on Aug 11, 2006 at 17:41 UTC | |
by jfredett (Beadle) on Aug 11, 2006 at 23:27 UTC |