Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > Perl and the DBI > :Newbie question: can perl load file from internet?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-20-04, 00:26
cool_wutever cool_wutever is offline
Registered User
 
Join Date: Jun 2004
Posts: 5
:Newbie question: can perl load file from internet?

Newbie in perl........

Quote:
addParseFiles(\@parseFiles,"$def_config/config.txt", \%config);


in the string "$def_config/config.txt", is that possible for me to upload the file"config" to internet and let the program load it from internet? if yes, can pls kindly post the source code or example? thx a bunch


newbie here...dun flame me
Reply With Quote
  #2 (permalink)  
Old 06-20-04, 11:31
Pat Phelan Pat Phelan is online now
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 9,573
I'm not sure that I understand your question. If you are asking can Perl do an FTP transfer, the answer is definitely yes. If you are asking if it can do things like include a Perl script from a URL, I can't think of a way to do that.

Can you clairify what you are asking a bit?

-PatP
Reply With Quote
  #3 (permalink)  
Old 06-21-04, 05:06
cool_wutever cool_wutever is offline
Registered User
 
Join Date: Jun 2004
Posts: 5
Quote:
Originally Posted by Pat Phelan
I'm not sure that I understand your question. If you are asking can Perl do an FTP transfer, the answer is definitely yes. If you are asking if it can do things like include a Perl script from a URL, I can't think of a way to do that.

Can you clairify what you are asking a bit?

-PatP


ops...i'm sorry.... i should make my question clear.... sry

BTW, i'm not using the FTP transfer...meaby take a string from URL's file for the perl's use.. basically uploading a text file that required by perl...eg. "names.txt" into any web, call perl to use a string...eg."name" in the "name.txt".
Reply With Quote
  #4 (permalink)  
Old 06-21-04, 08:01
senza_nome senza_nome is offline
Registered User
 
Join Date: Jun 2004
Location: Nowhere Near You
Posts: 89
You want to upload and process the file. Can be done.
Reply With Quote
  #5 (permalink)  
Old 06-21-04, 09:13
cool_wutever cool_wutever is offline
Registered User
 
Join Date: Jun 2004
Posts: 5
really?

i'm newbie in perl.... can quote me the code or sth? thx btw

sry 4 actin like newbie
Reply With Quote
  #6 (permalink)  
Old 06-21-04, 10:18
senza_nome senza_nome is offline
Registered User
 
Join Date: Jun 2004
Location: Nowhere Near You
Posts: 89
Look in Lincoln Stein's Official Guide to Programming with CGI.pm --- pages 149-157.
Reply With Quote
  #7 (permalink)  
Old 06-22-04, 06:20
cool_wutever cool_wutever is offline
Registered User
 
Join Date: Jun 2004
Posts: 5
is that a book? i search around the web....say is book....

my problem is, i won't able 2 hv that book in hand.... (book store dun hv... no cc... bla bla)

i wonder...is tat a small code? can post it? if not thn nvm thn....


thx btw
Reply With Quote
  #8 (permalink)  
Old 06-22-04, 09:23
senza_nome senza_nome is offline
Registered User
 
Join Date: Jun 2004
Location: Nowhere Near You
Posts: 89
Yes, it is a book. Look in the pod for CGI.pm. Lincoln Stein wrote both the module and the book.
Reply With Quote
  #9 (permalink)  
Old 06-24-04, 05:56
cool_wutever cool_wutever is offline
Registered User
 
Join Date: Jun 2004
Posts: 5
icic....nvm thn....i'll get the book then....(but the book store dosnt seems hv that)
Reply With Quote
  #10 (permalink)  
Old 06-24-04, 07:24
Pat Phelan Pat Phelan is online now
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 9,573
The pod that senza_nome refered to is the Perl Online Documentation. You can certainly buy the book (which I'd recommend), but you don't need to based on the previous posting.

-PatP
Reply With Quote
  #11 (permalink)  
Old 06-24-04, 08:19
reneeb reneeb is offline
Registered User
 
Join Date: Jan 2004
Location: Germany
Posts: 167
You can find the documentation for CGI.pm at http://perldoc.com ( http://www.perldoc.com/perl5.8.4/lib/CGI.html )!
__________________
board.perl-community.de - The German Perl-Community
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

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