The first Foo is the name of a package, as in...
package Foo; sub bar { print "Inside the package, I am called 'bar'\n"; print "But outside the package, I am called Foo::bar\n"; }
The second "Foo" is just a string scalar.
I really think you need to read perlboot from start to finish.
In reply to Re^3: Perl "new" command
by tobyink
in thread Perl "new" command
by akagrawal3
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |