http://www.perlmonks.org?node_id=977485


in reply to Re^2: help with sprintf
in thread help with sprintf

my @times = map "$_00", '00' .. '23';

Replies are listed 'Best First'.
Re^4: help with sprintf
by Eliya (Vicar) on Jun 20, 2012 at 22:26 UTC

    I suppose you meant

    my @times = map "${_}00", '00' .. '23';

    ($_00 is a valid variable name, which interpolates to nothing)