RE: Getting rid of junk.

2001-12-13 Thread Aaron Shurts
Thanks ALL! I got it. -_-Aaron -Original Message- From: Etienne Marcotte [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 12:25 PM To: Aaron Shurts; [EMAIL PROTECTED] Subject: Re: Getting rid of junk. and while re-reading you post: why are you using while( ($login

Re: Getting rid of junk.

2001-12-13 Thread Etienne Marcotte
and while re-reading you post: why are you using while( ($login) = $sth->fetchrow_array ()) and not while (my @row = $sth->fetchrow_array ()) ??? array is @, no? foreach %login is a hash abnd you have login as a variable.. I think what you are looking is something like: my $sth = $dbh->prepare

Re: Getting rid of junk.

2001-12-13 Thread Kevin Meltzer
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 > h

Re: Getting rid of junk.

2001-12-13 Thread Etienne Marcotte
check out substr! http://www.perldoc.com/perl5.6.1/pod/func/substr.html $var= substr($var,3); Etienne Aaron Shurts wrote: > > 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 i

Getting rid of junk.

2001-12-13 Thread Aaron Shurts
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) = $