in reply to extracting numbers from a string

This is really basic knowledge, and I hope you can gain some understanding by reading the docs. There are various methods, depending on what you like (or want to learn). I suggest you take a look at perlre and unpack, you can use both. Or use substr, like modred says, it's faster than m//.

But to give you a start, try this: ($x,$z) = $filename =~ /(\d\d)-(\d\d)/;for the first two numbers. The others are left as an exercise.... or just fill in modred's regex.

Jeroen
"We are not alone"(FZ)

Update: Thought you might as well have a look at 7 Stages of Regex Users