CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner: Re: [Fishhead] Sessions variables: Edit Log

Veteran / Moderator

Feb 12, 2016, 9:33 AM

Views: 7987
Re: [Fishhead] Sessions variables

Are you using the strict pragma i.e., does your script have this line?

use strict;

Based on the code you've posted your script doesn't have that line.

If you are using the strict pragma, then a var declared/defined in one sub would be local to that sub and will not be accessible in another sub.

If you are not using the strict pragma, then all vars defined are global and accessible from any location. However, doing that is a very very bad coding practice and makes troubleshooting much more difficult.

Instead of posting your entire 15,000 line script, write a short but complete test script that demonstrates the problem and post that script. With that I will be able to tell you what's wrong.

(This post was edited by FishMonger on Feb 12, 2016, 9:34 AM)

Edit Log:
Post edited by FishMonger (Veteran) on Feb 12, 2016, 9:34 AM

Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives