My anonymous brother has already given you some tips on how to questions effectively, so I'll add just one thing: please, put posts in the right category. Questions about Perl and how to use it should go in
Seekers of Perl Wisdom, not
Perl Monks Discussion. I've moved your post, but please read
Where should I post X? and
PerlMonks Sections for future reference. Thanks!