#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    2
    Rep Power
    0
    I taught my self Perl writing scripts. However now when I want to convert them to work with mod_perl I am having big problems.
    I'm getting sometimes it work and sometimes it doesn't problem. So I guess there are issues with persistent global variables. So I had a go at using
    Code:
    my $var;
    and
    Code:
    use vars qw($var);
    to initalise the variables. But neither of these seem to hit the jackpot.
    Is there some simple formula for getting something like this to work (I'm not using CGI.pm).

    Cheers small ears

    ps. What is the difference between
    Code:
    apache::PerlRun
    and
    Code:
    apache::registry
    in the httpd.conf?
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    2
    Rep Power
    0
    To all those 173 viewers of my thread.

    After several hours of hitting my head against a wall I worked out how to get my script to work. Combination of requires, variable setting and passing parameters.

    Isn't Perl poor at parameter passing? Give me C anyday.

IMN logo majestic logo threadwatch logo seochat tools logo