> Well I am very new to Perl. I have read  Oreily's
> Camel book, but haven't found any thing about 
> my that is used in any of the code.
> 
> e.g 
> my $var
> 
> What is my supposed to be over here?
> 
>

Since the Camel is a reference more than a tutorial and because it is
already a pretty thick tome many of the examples in it will not include
'my' as that is really a best practice not an absolute necessity to
demonstrating code in a reference setting, so to make example code
shorter and easier to understand.  Having said that, it *is* a best
practice and you *should* be doing,

use strict;
use warnings;

In all of your code, which will necessitate the use of 'my' very often.

http://perl.plover.com/FAQs/Namespaces.html

Is an excellent article on scoping in Perl, and should clear things up
with regards to 'my'.... come back if you have further questions,

http://danconia.org

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to