in reply to Easy question

In addition to the above, if you are completely lost, not knowing the exact structure of some variable, say $x, you can dump it like so:

use warnings; use strict; use Data::Dumper; print Dumper $x;