Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old January 31st, 2001, 05:24 AM
Matt M Matt M is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 2 Matt M User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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?

Reply With Quote
  #2  
Old February 7th, 2001, 03:43 AM
Matt M Matt M is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 2 Matt M User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > converting to mod_perl


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway