Mega Code Archive

 
Categories / Perl / String
 

Printing numbers with the + flag

#!usr/bin/perl use warnings; use strict; printf "%+d\n%+d\n", 786, -786;