Problems? Is your data what you think it is? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
If you want to loop through the whole array with the for loop, wouldn't you want to have $#filenames+1 instead? Usually it would be much easier just to use @filenames in scalar context like so:
for(my $i=0;$i<@filenames;$i++){stuff...} Also, you don't need to have a semi-colon to finish a statement if a brace immediately follows which means I can do stuff like:
(to the root node)Just so I don't have to create another post, I noticed that some of your calls use arrays slices when what you want is array indexes. This means taht @array[-1] is different than $array[-1] and could possibly lead to problems. Hope I helped :)
In reply to Re: Re: compilation errors???
by damian1301
|
|