in reply to Inserting elements into arrays

Ekolet:

Yes, read perldocs perlintro, paying special attention to sections: "Files and I/O", "Regular Expressions", "Perl variable types" and "Conditional and looping constructs". There's enough there to get you on your way.

...roboticus

When your only tool is a hammer, all problems look like your thumb.