in reply to Re^2: Picking out specific lengths from a set of hashes.
in thread Picking out specific lengths from a set of hashes.

What's the reason for redeclaring the $id variable in the final 'for' loop?

Habit, keeping things local to where they are used rather than global in scope.

I'm also wondering whether the length function works on a hash such as $seq{$id} in the same way it works on say something like $id?

to length either is just yet another string

  • Comment on Re^3: Picking out specific lengths from a set of hashes.

Replies are listed 'Best First'.
Re^4: Picking out specific lengths from a set of hashes.
by Peter Keystrokes (Beadle) on May 11, 2017 at 21:49 UTC
    Ahh, okay thanks.