I would probably use substr $year = substr( $year, 2 ); ----- Original Message ----- From: "Daniel Falkenberg" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 03, 2002 9:54 PM Subject: Stripping digits from a variable...
> Hey all, > > I have a variable that prints... 2002 > > I want to strip the first two digits from that. Could someone give me a > hand with that. At the moment I have ... > > $year = "2002"; > > $year =~ s//20/; > > Is there a more precise way of doing that? > > Regards, > > Dan > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
