Results 1 to 11 of 11
  1. #1
    Join Date
    Jun 2004
    Posts
    5

    Unanswered: :Newbie question: can perl load file from internet?

    Newbie in perl........

    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

  2. #2
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    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

  3. #3
    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".

  4. #4
    Join Date
    Jun 2004
    Location
    Nowhere Near You
    Posts
    89
    You want to upload and process the file. Can be done.

  5. #5
    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

  6. #6
    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.

  7. #7
    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

  8. #8
    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.

  9. #9
    Join Date
    Jun 2004
    Posts
    5
    icic....nvm thn....i'll get the book then....(but the book store dosnt seems hv that)

  10. #10
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    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

  11. #11
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •