in reply to Re: Perl "new" commandin thread Perl "new" command
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"; } [download]
The second "Foo" is just a string scalar.
I really think you need to read perlboot from start to finish.