0377 # 377 octal, same as 255 decimal
0xff # FF hex, also 255 decimal
0b11111111 # also 255 decimal (available in version 5.6 and later)
Although these values look different to us humans, they're all
three the same number to Perl. It makes no difference to Perl whether
you write 0xFF or 255.000, so
choose the representation that makes the most sense to you and your
maintenance programmer (by which we mean the poor chap who gets stuck
trying to figure out what you meant when you wrote your code. Most
often, this poor chap is you, and you can't recall whay you did
what you did three months ago).
When a non-decimal literal is more than about four characters long,
it may be hard to read. For this reason, starting in version 5.6,
Perl allows underscores for clarity within these literals:
0x1377_0b77
0x50_65_72_7C