in reply to anyway to combine these two steps?

($num) = $num =~ m#20(\d)#; ($num) = sprintf("%02d",$num);

Replies are listed 'Best First'.
Re^2: anyway to combine these two steps?
by dsheroh (Monsignor) on Jan 19, 2010 at 08:43 UTC
    ; separates statements. Putting two statements onto the same line does not make them a single statement any more than writing this as
    ($num) = $num =~ m#20(\d)#; ($num) = sprintf( "%02d", $num );
    makes it 11 statements.