The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-17-2006
sarwan sarwan is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 54
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
  #2 (permalink)  
Old 01-17-2006
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:21 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0