gwhite has asked for the wisdom of the Perl Monks concerning the following question:
Help, project not working, here is the code snippet:
print "$login_time\n" if $self->{'debug'}; my ($dbyear, $dbmon, $dbmday, $dbhour, $dbmin, $dbsec ) = ($login_time + =~ /^(\d+)-(\d+)-(\d+) (\d+):(\d+):(\d+)$/); print "$login_time\n$dbyear, $dbmon, $dbmday, $dbhour, $dbmin, $dbsec\ +n" if $self->{'debug'};
and my output results are:
1990-01-01 00:00:00.000 1990-01-01 00:00:00.000 , , , , ,
why aren't my variables $dbxxx getting populated?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regex not working
by trammell (Priest) on Jan 29, 2005 at 16:07 UTC | |
by gwhite (Friar) on Jan 29, 2005 at 16:37 UTC | |
by ZlR (Chaplain) on Jan 29, 2005 at 18:18 UTC | |
by sh1tn (Priest) on Jan 29, 2005 at 17:37 UTC | |
by saskaqueer (Friar) on Jan 29, 2005 at 17:51 UTC | |
by sh1tn (Priest) on Jan 29, 2005 at 17:41 UTC |