Shawn H Corey <shawnhco...@gmail.com> writes:

[...]

>> Yikes, I'll be a week with perlre to get even close to following that.
>> In fact I don't really understand whats happening there at all.
>>
>> Also it doesn't appear to work with the data I posted unless the
>> $extra is present, and that is supposed to be up to the ~/.events
>> author.
>
> Oops, you're right.  I forgot the extra was optional.  Try:
>
> if ( my ( $year, $mnth, $mday, $extra ) = $_ =~ m{ \A \s* ev \s*
>      (\d\d)(\d\d)(\d\d) \s* (\d+)? \s* \Z }msx ) {
>

Wow, gets it in one swoop.  This construct looks pretty foreign to me.
I associate seeing =~ operator with s/// type setup.

Can you steer me to a bit of documentation that explains what I'm
seeing here.  Particularly m{...}msx


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to