Hi Monk, Suppose I have perl script which has no 'use strict'/'use warnings' in it. In that case what is the significance of a 'my' and 'local' variable in it. It is like
#!/usr/bin/perl my $a = 5; local $b = 4;
What are the significance of 'my' and 'local' here. For your information I know about local variables. They work on global (i.e package ) variables, applying 'local' on them localizes their value and restores back their original value once the scope is gone. But in this above scenario how do they(my and local) differ ?
In reply to my and local variable significance in a particular case by ghosh123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |