Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Please help me

by TGI (Vicar)
on Feb 12, 2010 at 15:24 UTC ( #822884=note: print w/ replies, xml ) Need Help??


in reply to Please help me

Please read How To Ask A Question (Simple English) (RFC).

Also, it looks like you don't have strict enabled. You should. It will save you hours and hours of work.

One of the easiest ways to debug a chunk of code is to insert some print or warn statements. Try modifying your code as follows:

@INFFiles = `dir /b $filespec`; use Data::Dumper; warn "GETTING FILES " warn Dumper \@INFiles; foreach $infFile (@INFFiles) { warn "PROCESSING $infFile";

You will be able to see what values are being used for @INFiles.


TGI says moo


Comment on Re: Please help me
Select or Download Code
Re^2: Please help me
by mtrasp (Acolyte) on Feb 12, 2010 at 18:17 UTC
    HI

    Thank you for your help. next time onwards i will follow the rules.

      It's always hard when you are working with new tools and reaching out to new people for help. It looks like you got the answer you needed, and some other helpful advice as well.

      Still, writing clear questions with good titles makes it easier for people to help you. The easier it is for others to offer help, the more help you can expect to receive. Sometimes the effort to clarify ones thoughts and compose a good post is enough to let you answer your own question.

      Both questions and answers are necessary parts of Perlmonks. Thank you for your contribution so far. Keep asking, and sooner than you think, you will be able to start answering questions too.

      Welcome to Perlmonks and Perl in general.


      TGI says moo

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://822884]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2014-08-29 06:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (275 votes), past polls