The Official Website of AgoraCart and Agora.cgi
AgoraCart.com Demos Download AgoraCart User Manuals & Wiki Gold Members Forum Go Gold Now! Gold Version Memberships

AgoraCart.com

About
Features
Download
Payment Gateways
Send a Donation
Founders Club
BLOG: News & Updates

Showcases & Demos

AgoraCart Demos
Shop Live Stores

Downloads & Add-ons

Gold Version Downloads
DBwizz Database Mgr.
AgoraCart.com Store

Help & Support

User Manuals
Gold Version Users Forum
Gold Version Chat
Tech Support
Certified Agora Pros
Certified Designers
Hire a Freelancer

Gold Version Members

Member Benefits
Join Today!
Gold Members Home
Gold Version Users Forum
Gold Version Chat Rooms
Gold Version Downloads

For Store Owners

Merchant Accounts
Cool Resources
Advertise Here
"Powered by" Logos
Web Hosting Search

Misc.

Contact Us
MEET's Talking Guide
The Ancient Greek Agora






AgoraCart Free User Forums

This is the official FAQ and Cool Tips guide For the AgoraCart shopping Cart software


Official Sponsors of the AgoraCart Project:

       


RegisterSearchFAQLog in
Reply to topic Page 1 of 1
General Perl Code Structure Question
Author Message
Reply with quote
Post General Perl Code Structure Question 
I haven't spent any time studying Perl in earnest yet, but I have a question...

In the "olden days" of structuring program code, the standard for placing
"paragraphs" or routines within code was to place the "called" routine
below the routine which calls it (if possible).

Now I know I'm dating myself, but I see most of the "called" routines placed above the calling routines in the bulk of these modules...
Example - in shippling_lib.pl
sub calc_SBW is defined above
define_shipping_logic, which calls it

I'm sure it doesn't matter from a performance standpoint, but since Perl is
not a "compile, link & go" language, is there something about Perl that insists a routine be defined above, so it's interpreted efore the command that executes it?

Just an old dog trying to learn some new tricks... Smile
Jim in Pittsburgh
(Could you tell I'm an old Fortran/COBOL guy?)

View user's profile Send private message
Reply with quote
Post RE: General Perl Code Structure Question 
hell-o
i wouldn't think so. the function doesn't happen or is defined until it is called with influencing variables. i think what you're observing is stuff appended to old stuff. there maybe some significant speed realized if the routines were optimized. but with processor speeds what they are and memory what it is it would be only evident on servers who pack accounts in with a ramrod and shut the door by sitting on it. LOL.
regards,
dan

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum