in reply to removing leading 0's

#!/usr/bin/env perl use strict; use warnings; use feature qw(say); my $x = 10; my $y = 0010; $y = sprintf( "%o", $y ); say $y; if ( $x == $y ) { say qq($x and $y are equal); } else { say qq($x and $y aren't equal); } __END__ karls-mac-mini:monks karl$ ./CSharma.pl 10 10 and 10 are equal

Regards, Karl

«The Crux of the Biscuit is the Apostrophe»