Comment by jstanley 2 days ago Ha, (1.) was deliberate but I'd forgotten (2.) 6 comments jstanley Reply sshine 2 days ago Yeah, you probably want my ($x, $y, $z) = @shift; :-D rurban 2 days ago For reference:Valid is either sub () { my ($x, $y, $z) = @_; or sub ($x, $y, $z) { sshine 2 days ago I should have said my ($x, $y, $z) = @$_[0]; but I was making a joke.If $_[0] is an array reference, @$_[0] becomes a list.The joke was a reference to most wrong Perl programs being valid for something.Hence the meme: "93% of Paint Splatters are Valid Perl Programs"https://www.mcmillen.dev/sigbovik/ kqr 2 days ago Why the empty prototype in the first alternative? 2 replies →
sshine 2 days ago Yeah, you probably want my ($x, $y, $z) = @shift; :-D rurban 2 days ago For reference:Valid is either sub () { my ($x, $y, $z) = @_; or sub ($x, $y, $z) { sshine 2 days ago I should have said my ($x, $y, $z) = @$_[0]; but I was making a joke.If $_[0] is an array reference, @$_[0] becomes a list.The joke was a reference to most wrong Perl programs being valid for something.Hence the meme: "93% of Paint Splatters are Valid Perl Programs"https://www.mcmillen.dev/sigbovik/ kqr 2 days ago Why the empty prototype in the first alternative? 2 replies →
rurban 2 days ago For reference:Valid is either sub () { my ($x, $y, $z) = @_; or sub ($x, $y, $z) { sshine 2 days ago I should have said my ($x, $y, $z) = @$_[0]; but I was making a joke.If $_[0] is an array reference, @$_[0] becomes a list.The joke was a reference to most wrong Perl programs being valid for something.Hence the meme: "93% of Paint Splatters are Valid Perl Programs"https://www.mcmillen.dev/sigbovik/ kqr 2 days ago Why the empty prototype in the first alternative? 2 replies →
sshine 2 days ago I should have said my ($x, $y, $z) = @$_[0]; but I was making a joke.If $_[0] is an array reference, @$_[0] becomes a list.The joke was a reference to most wrong Perl programs being valid for something.Hence the meme: "93% of Paint Splatters are Valid Perl Programs"https://www.mcmillen.dev/sigbovik/
Yeah, you probably want
:-D
For reference:
Valid is either
or
I should have said
but I was making a joke.
If $_[0] is an array reference, @$_[0] becomes a list.
The joke was a reference to most wrong Perl programs being valid for something.
Hence the meme: "93% of Paint Splatters are Valid Perl Programs"
https://www.mcmillen.dev/sigbovik/
Why the empty prototype in the first alternative?
2 replies →