Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Please help me

by TGI (Parson)
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

Replies are listed 'Best First'.
Re^2: Please help me
by mtrasp (Acolyte) on Feb 12, 2010 at 18:17 UTC

    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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://822884]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2018-02-18 06:01 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (250 votes). Check out past polls.