Perl: the Markov chain saw | |
PerlMonks |
Re: [OT] Python to Perl.by davido (Cardinal) |
on Jun 15, 2018 at 15:06 UTC ( [id://1216716]=note: print w/replies, xml ) | Need Help?? |
I'm sure you've done this:
...and so are aware that, at least superficially, the construct is the same as @a = (0) x 10. So I imagine the question is more about whether below the surface they are similar. There is this gotcha:
But that's really no different than this:
It seems from documentation and behavior that the two are as close to being literal translations as can be hoped for across different languages. Dave
In Section
Seekers of Perl Wisdom
|
|