![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Match keyword on string and substitute under vi | lycaon | Shell Programming and Scripting | 2 | 04-25-2008 12:36 PM |
| Need help in checking the date and looking for a keyword in a script | tatchel | Shell Programming and Scripting | 0 | 04-21-2008 08:46 PM |
| keyword searching of documents | Miles | OS X (Apple) | 1 | 02-25-2008 06:38 PM |
| dtwm: Invalid keyword -- /TITLE | lyonsd | SUN Solaris | 1 | 02-09-2007 09:30 AM |
| Far Keyword | svh | High Level Programming | 2 | 02-08-2006 12:16 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Keyword in perl
Hi,
I want to know all the keywords in perl as well as their usage. plz provide if u have any URL regarding this. In my perl script first 2 lines are 1)use DBI; 2)require "hello.pl"; what is the use these two statements. i thought the second one may be like include . Thanks in advance. Sarwan |
|
||||
|
Both "use" and "require" means to include some external modules/scripts. The major difference being "use" is a "compile-time" construct, and missing module will cause a run-time error with "require", but a compile-time error with "use". So "use" will help you locate missing modules earlier compared with "require" before the script starts execution.
Also, "use" is mostly used to include reusable, object-oriented modules; while "require" are frequently used to include external scripts. For keywords, you will see all of them defined in the Perl set of manpages everywhere. There are simply too many to be listed |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|