in reply to Re^2: (8)Exec format error: when running the script on Linux
in thread (8)Exec format error: when running the script on Linux

Try taking out these:

sub setImage; sub newText; sub newTextRight; sub checkCurrency; sub GrabParams;
I don't know what they're for. As far as I know, you don't pre-declare subroutines in Perl.

non-Perl: Andy Ford

Replies are listed 'Best First'.
Re^4: (8)Exec format error: when running the script on Linux
by Fletch (Bishop) on Jan 19, 2007 at 19:30 UTC

    You don't have to, but it can be done. It basically lets the parser know that if it encounters those things in a bareword context to treat them as sub invocations rather than bareword strings. That lets you use them without parens before the actual subroutine declaration later in the source.

    use strict; sub foo; ## This line will not cause an error . . . foo "ABC"; ## . . . but this one does bar "DEF"; sub foo { print @_ } sub bar { print @_ }