Comment on the scope of variables in perl.
Answer / Nizam Miyan
In Perl, variables have lexical or dynamic scopes. Lexically-scoped variables are declared using my and last only within the block they were defined. Dynamically-scoped variables, also known as package variables, can be accessed throughout the program unless redefined locally.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to find out the version of PERL being installed on your LINUX machine.
write a perl script to find whether a given line of text is starting and ending with same word or not ???
What is stdin in perl?
How to start perl in interactive mode?
What is the difference between use and require in perl programming?
We all know private variables exist in perl. But do private METHODS exist in perl ? Eg ?
List all the features of perl programming?
Explain the different types of data perl can handle.
write a script to generate n prime no.s?
What is the use of now constructor in perl?
In CPAN module, name an instance you use.
Explain goto expr?