[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

My ?

Posted on 1999-07-01
1
Medium Priority
?
186 Views
Last Modified: 2013-12-25
what does "my" mean in a cgi program?
0
Comment
Question by:LotsOfQuestions
1 Comment
 
LVL 1

Accepted Solution

by:
austinke earned 40 total points
ID: 1834877
my means nothing in a CGI program.  :-)

On the other hand, my means a lot in a Perl program, and a fair number of CGIs are written in Perl.  my in a perl program is used to declare the scope of a variable.  Check out http://language.perl.com/newdocs/pod/perlfaq7.html#What_s_the_difference_between_dy for all of the details, but here is an excerpt:

"my($x) creates a new variable that is only visible in the current subroutine. This is done at compile-time, so is called
lexical or static scoping. my() always affects private variables, also called lexical variables or (improperly) static(ly
scoped) variables. "

Kevin
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

608 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question