Hack, Gabi (ext) wrote:
Shawn H Corey <shawnhco...@gmail.com> writes:
if ( my ( $year, $mnth, $mday, $extra ) = $_ =~ m{ \A \s* ev \s*
(\d\d)(\d\d)(\d\d) \s* (\d+)? \s* \Z }msx ) {
just a little side question. i would have written
(\d*)
Returns the empty string "" if not found.
instead of
(\d+)?
Returns undef if not found.
John
--
The programmer is fighting against the two most
destructive forces in the universe: entropy and
human stupidity. -- Damian Conway
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/