ikegami:
no one has mentioned a system or version where the arguments are evaluated in any order other than left-to-right
My answer to the OP was completely wrong,
which is what I found out after investigating
into the topic.
Thats another case where prejudice brings ill-fated conclusions.
One simple look into
perl -MO=Bblock thisprog.pl reveals
the left-to-right sequence
OP (0x824dc78) enter
COP (0x81f30f0) nextstate
SVOP (0x824daa0) const [6] IV (0x8167cdc) 1
PADOP (0x8193748) gvsv GV (0x816887c) *|
BINOP (0x8189228) sassign
COP (0x824c460) nextstate
OP (0x824ffa8) pushmark
SVOP (0x81892b8) const [7] PV (0x8168804) "first="
PADOP (0x818c5c0) gvsv GV (0x816887c) *|
SVOP (0x818dc50) const [8] PV (0x8168810) " second="
PADOP (0x824fdb8) gvsv GV (0x816887c) *|
UNOP (0x824fc80) postinc [4]
SVOP (0x824dc58) const [9] PV (0x81688a0) "\n"
LISTOP (0x824ff80) print
LISTOP (0x824d8e0) leave [1]
int the perl. Sorry, I was mistaken by the way one
"programs" Perl in C via its interfaces.
Thanks to all people who helped clearing this up.
I will eventually make an addendum to my first post.
Regards
mwa
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.