Since @ARGV is localized, it doesn't destroy the main program's @ARGV contents. And by using @ARGV you get away with the magic diamond operator, thus avoiding the need to open the file yourself. It's a really beautiful idiom. Juerd++.
Makeshifts last the longest.
Re^2: Cheap idioms
Replies are listed 'Best First'.