Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: (8)Exec format error: when running the script on Linux

by andyford (Curate)
on Jan 19, 2007 at 18:53 UTC ( [id://595529]=note: print w/replies, xml ) Need Help??


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 @_ }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://595529]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-25 18:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found