develooper Front page | perl.beginners | Postings from January 2002

Re: USE IMPORT REQUIRE

Thread Previous | Thread Next
From:
Chris Ball
Date:
January 6, 2002 05:57
Subject:
Re: USE IMPORT REQUIRE
Message ID:
20020106140435.A11279@void.printf.net
On Sun, Jan 06, 2002 at 02:17:50PM +0330, nafiseh saberi wrote:
> what is the difference between 
> "use" , "import" , "require".

See 'perldoc -q use require'.  'import' is not a perl keyword, and I'm
guessing that you got it from looking at Python source somewhere.  It
does have a use in perl, but as a special subroutine name; described in
perldoc -f import.  'import Some::Module' is not valid perl code.

Hope this helps,

- ~C.
-- 
$a="printf.net"; Chris Ball | chris@void.$a | www.$a | finger: chris@$a
As to luck, there's the old miners' proverb: Gold is where you find it.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About