[Chicago-talk] What does dollar sign followed by a period represent?

Richard Reina richard at rushlogistics.com
Sat Dec 23 15:02:18 PST 2023


Ahh thank you so very much Andy!
 
 



On Sat, 23 Dec 2023 16:59:24 -0600, Andy Lester <andy at petdance.com> wrote:

It’s the current line number. See “perldoc perlvar”

> On Dec 23, 2023, at 4:57 PM, Richard Reina wrote:
>
> 
> A few years ago I hastily wrote some code that I did not comment very well. In it I found:
>
> $switch = $. if m!^[0-3]?[0-9]/[0-3]?[0-9]/(?:[0-9]{2})?[0-9]{2}$!; # match date
>
> Can anyone tell me what $. means?
>
> Thanks for any help.
>
> Richard
> _______________________________________________
> Chicago-talk mailing list
> Chicago-talk at pm.org
> https://mail.pm.org/mailman/listinfo/chicago-talk

_______________________________________________
Chicago-talk mailing list
Chicago-talk at pm.org
https://mail.pm.org/mailman/listinfo/chicago-talk
 


More information about the Chicago-talk mailing list