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

David Mertens dcmertens.perl at gmail.com
Sat Dec 23 21:47:04 PST 2023


When in doubt,

perldoc perlvar

Might give you a faster answer than asking the list. Ymmv. :-)

On Sat, Dec 23, 2023, 5:02 PM Richard Reina <richard at rushlogistics.com>
wrote:

> 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
>
> _______________________________________________
> Chicago-talk mailing list
> Chicago-talk at pm.org
> https://mail.pm.org/mailman/listinfo/chicago-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/chicago-talk/attachments/20231224/436631fe/attachment.html>


More information about the Chicago-talk mailing list