Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Understanding using external program data

by NovMonk (Chaplain)
on Feb 14, 2007 at 16:25 UTC ( #599980=note: print w/replies, xml ) Need Help??


in reply to Re: Understanding using external program data
in thread Understanding using external program data

So, in the module, you Don't use the #! line-- you say "package <packagename>;". Such a simple thing, but I just couldn't see it. Everything works now. Thanks!
  • Comment on Re^2: Understanding using external program data

Replies are listed 'Best First'.
Re^3: Understanding using external program data
by Anno (Deacon) on Feb 14, 2007 at 20:03 UTC
    Oh dear, that's a very superficial description of the situation.

    The "hashbang" line in a script and a "package" line in a module have very little in common. One is Perl, the other isn't, for one essential difference. Each can usefully appear in the other kind of file, so they're not even distinctive.

    Please read up on the function of each. See perldoc perlrun for the hashbang line and perldoc perlmod (plus perldoc -f package for the package statement.

    Anno

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2022-05-29 06:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (101 votes). Check out past polls.

    Notices?