in reply to my first try

Humm... I couldn't get it to run on Win32 (the machine I'm at as I write this). Earlier I was on my Linux machine and it ran - no problem!

Is there something particular about this ob-code that would make it non-portable?

#!/home/bbq/bin/perl
# Trust no1!

Replies are listed 'Best First'.
RE: RE: my first try
by btrott (Parson) on May 01, 2000 at 10:35 UTC
    What version of Perl are you running on your Win32 machine? From a quick glance, the code uses some features ("EXPR foreach" and qr) that were added in, I think, Perl 5.005. If you're using an older version, you'll get syntax errors.
      hummm... That's odd. This is what I've got:
      Orders, Sir? perl -v This is perl, version 5.005_03 built for MSWin32-x86-object (with 1 registered patch, see perl -V for more detail) Copyright 1987-1999, Larry Wall Binary build 522 provided by ActiveState Tool Corp. http://www.ActiveS +tate.com Built 09:52:28 Nov 2 1999 [snip]
RE: RE: my first try
by zodiac (Beadle) on May 02, 2000 at 12:48 UTC
    I use qx to execute a "echo some text" command since perl for win does not have fork this might be a problem, your machine has no echo command. and you should not change the first line :-)
RE: RE: my first try
by hindc (Novice) on May 02, 2000 at 19:00 UTC
    perl -v This is perl, v5.6.0 built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2000, Larry Wall Binary build 613 provided by ActiveState Tool Corp. http://www.ActiveState.com Built 12:36:25 Mar 24 2000 ... will run this fine.