Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: MyInclude

by stonecolddevin (Parson)
on Jun 13, 2003 at 02:17 UTC ( [id://265556]=note: print w/replies, xml ) Need Help??


in reply to Re: MyInclude
in thread MyInclude

Good points, simon.proctor. I guess I used my @data_arr = $data; because I had used it in writing a guestbook and it had worked pretty well. I commented out the flock call because it isn't supported on my winblows box, and I suppose I forgot to un-comment it. As far as my desire to re-invent the wheel, I wanted to provide a quick access function snippet for people not using CGI::SSI, for people like me who haven't had a chance to install it.
Well, that's my "defense". I'm sure it doesn't hold a candle to CGI::SSI's version, but it was quick, and that's what I wanted. Thanks for the pointers, I'll fix it next version.
Hi, my name is Dhoss, I like to play Quake 3 arena, I drink Vanilla Coke, and I like long walks on the beach while the sun goes down.

Replies are listed 'Best First'.
Re: Re: Re: MyInclude
by Anonymous Monk on Jun 19, 2003 at 04:42 UTC
    I use this kind of code in a sort of an html-template way: I first edit my html file with wysiwyg FrontPage.

    Then add some comments with some special character, to later replace with a dessired chunk of values processed by Perl.

    Then, at the script, I load the html file in a scalar and s/usbstitute the established comments with the fresh chunk of data processed with the script.

    I don't need any module to do all these!

    (Note: I am first trying to manage without the use of modules so as to learn the basics and common scripting habbits.

    Later, when needing to speed up code creation, I am going to study some basic code implementation:)

      (Note: I am first trying to manage without the use of modules so as to learn the basics and common scripting habbits. )
      What's wrong with making habits of using the modules first if available? May be the energy is spend correctly.

      artist

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://265556]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-04-25 06:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found