Hi Aaron, $login =~ s!^\d{3}!!;
See also: perldoc perlre Cheers, Kevin On Thu, Dec 13, 2001 at 12:08:07PM -0800, Aaron Shurts ([EMAIL PROTECTED]) said something similar to: > I am not sure what to use in this case. > I am grabbing a bunch of login information from our database. The login > has 3 leading numbers. i.e. The value returned is: > 123login > I need to strip the 123 off and discard it. That value is unimportant > to me. Here is my pseudo-code: > > while( ($login) = $sth->fetchrow_array ()) > { > foreach %login > { > get rid of the leading numbers; > } > } > -- [Writing CGI Applications with Perl - http://perlcgi-book.com] Is that a real poncho or a Sears poncho? -- Frank Zappa -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]