http://qs321.pair.com?node_id=448920


in reply to Re: Four part JAPH
in thread Four part JAPH

Problem solved (I think), thanks to Jody Belka (knewt) on #perl.

ghenry, the file must include the #! line :-)

Replies are listed 'Best First'.
Re^3: Four part JAPH
by ghenry (Vicar) on Apr 18, 2005 at 15:37 UTC

    I'm a Linux junkie, but I thought on Windows, you always had to just have the code in a text file and run it with:

    perl textfile

    Walking the road to enlightenment... I found a penguin and a camel on the way.....
    Fancy a yourname@perl.me.uk? Just ask!!!
      I'm a Linux junkie, but I thought on Windows, you always had to just have the code in a text file and run it with:
      There's also the ASSOC and FTYPE commands for Windoze:
      ASSOC .pl=PerlScript FTYPE PerlScript=perl.exe %1 %*

      -QM
      --
      Quantum Mechanics: The dreams stuff is made of

      Don't know if there are other ways. But in this case cog uses the first line to extract the 'Perl' word and that's why the code needs it.

      Alberto Simões

Re^3: Four part JAPH
by olus (Curate) on Feb 06, 2006 at 02:13 UTC
    Haven't tried to de-obfuscate it (yet), but why not the use of $^X instead of the mandatory first line?