in reply to split function problem

Please read How (Not) To Ask A Question.

You write

The script I am using is below, I think the problem is at the split function (line 17). Is this right?

Yet you don't tell us what problem the script as a whole has.

When you have a suspicion where the proble might be, just add some debugging output. For example Data::Dumper can help you to analyze data structures.

use Data::Dumper; print Dumper \@chunks;

For writing the script you surely must have a mental model of what should be inside @chunks. Looking at the debugging output will tell you if the actual data in that variable matches your mental model. That way you can answer the question yourself if the line with the split is your problem.

It seems you have been working on this problem for three weeks now, and haven't made much progress. Did you just wait for to solve your problem? Or are you truly in a dead end?

If the latter is true, you should take some programming courses or maybe read one or more good books on programming.

We'll happily help you to answer programming questions, but only if you also put effort into answering these questions yourself.

Replies are listed 'Best First'.
Re^2: split function problem
by $new_guy (Acolyte) on Feb 23, 2011 at 07:52 UTC
    Thanks, am new to perl been trying to use it daily for 7 months now! I did know about data::Dumper
      Sorry, I meant, I didn't know about Data::Dumper, I will also look into what you have recommended.