If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Perl and the DBI > Executing a Perl script

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-02-06, 12:53
ssmith001 ssmith001 is offline
Registered User
 
Join Date: Sep 2005
Posts: 220
Executing a Perl script

I have a Perl script with a .pl extension. When I try and run it from the command line like this: test.pl

I get a message saying "test.pl not found". When I run it like this: perl test.pl

it runs OK. Why is this?
Reply With Quote
  #2 (permalink)  
Old 06-03-06, 18:05
KevinADC KevinADC is offline
Registered User
 
Join Date: Feb 2006
Posts: 56
I guess because you need to fire up perl first then tell it which script to run
Reply With Quote
  #3 (permalink)  
Old 06-14-06, 05:02
abdul_zu abdul_zu is offline
Registered User
 
Join Date: Dec 2002
Location: Nepal
Posts: 32
$ perl test.pl
Reply With Quote
  #4 (permalink)  
Old 07-16-06, 22:54
shanshan shanshan is offline
Registered User
 
Join Date: Jan 2005
Posts: 73
hmm, to my humble opinion, i think cos u need to call out the software of perl that is installed in ur computer to run the command..
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On