Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Understanding using external program data

by NovMonk (Chaplain)
on Feb 14, 2007 at 16:25 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-20 03:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found