Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
All hail ye PerlMonk Gods ... May I be so bold as to put forth a question seeking knowledge?
What does
. "$1"
mean when it is the first line in a perl script?
I would guess it means this:
$_ = $_ . "$1"
where $_ is the default perl variable and $1 is the match/capture group 1 But, that makes no sense as the first line. So, what gives? Thanks in advance!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: . "$1"
by bliako (Abbot) on Aug 24, 2018 at 00:28 UTC | |
|
Re: . "$1"
by hippo (Archbishop) on Aug 24, 2018 at 08:10 UTC | |
|
Re: . "$1" (updated)
by AnomalousMonk (Archbishop) on Aug 23, 2018 at 23:29 UTC | |
|
Re: . "$1"
by LanX (Saint) on Aug 23, 2018 at 22:45 UTC |