Re^2: Do not understand code
by Your Mother (Archbishop) on Oct 02, 2017 at 12:56 UTC
|
the then-present value of a variable, $_, which the Perl language does not even name.
I was curious if this was true, so checked English. Interestingly, to me at least, it does have a name but I admit its name is barely any better than not having one at all and probably why I didn't already know the answer without needing to look–
perl -MEnglish -le '$_ = "moo"; print $ARG'
moo
| [reply] [d/l] |
|
I'm worried that this talk of translating $_ into English
is neglecting the all-important needs of the Perl poet,
specifically the crucial Perl haiku (5-7-5) syllable count,
where traditionally
$_ is pronounced as "it" and @_ as "them",
as in chipmunk's winning TPC 4 poem
(where his subroutine summer is both a "sum-er" and a season):
sub summer { my $sum;
$sum += $_ for @_;
$sum } print summer (split);
and is pronounced (5-7-5) like so:
sub sum-mer my sum
sum plus equ-als "it" for "them"
sum print sum-mer split
| [reply] [d/l] [select] |
|
| [reply] |
|
perl -MEnglish -E "@; = q<Hi>; say @SUBSEP"
Hi
It's not a name that perl parses, but I'd expect pretty much everyone here to understand what "the default variable" refers too. | [reply] [d/l] |
|
> to understand what "the default variable" refers too.
We could consider adding $DEF or $DEFAULT for $_ to Perl.
> @; = q<Hi>; say @SUBSEP
I suppose these are just glob aliases, that's why they work for all types associated to a symbol.
| [reply] [d/l] |
|
|
It takes too much energy correcting all inaccuracies in sundial posts in replies. *
If it was possible to edit foreign posts (like in SO), sundials would be normally full of strikes and red comments.
*) that's the DOS feature which makes him similar to trolls.
| [reply] |
Re^2: Do not understand code
by Anonymous Monk on Sep 28, 2017 at 19:57 UTC
|
OP is a beginner and just wanted to understand the code. theres nothing wrong with the code and everything wrong with every one of your posts in this thread. thanks for reminding everyone you're just a troll | [reply] |
Re^2: Do not understand code
by Anonymous Monk on Sep 28, 2017 at 20:02 UTC
|
This statement is about to perform an irrevocable act: it is going to delete a file.
There are three posibilities: 1) the file is not terribly important, 2) there is a backup of the file, and c) you are an idiot. But I'm still waiting to hear how you, in your infinite wisdom, think it should have been written. This should be good.
| [reply] |
|
| [reply] [d/l] |