in reply to sprintf the last 2 digits

Try

my $year = 2002; $year =substr($year, -2); print $year;

Cor! Like yer ring! ... HALO dammit! ... 'Ave it yer way! Hal-lo, Mister la-de-da. ... Like yer ring!

Replies are listed 'Best First'.
Re: Re: sprintf the last 2 digits
by fireartist (Chaplain) on Oct 03, 2002 at 15:08 UTC
    BroswerUK ++ !
    Kudos for figuring out what I was really looking for!
    This is what happens when I go to bed at 4am, rather than my usual midnight-ish! ;)