Just another Perl shrine | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I just tested it using perlcc and it DID translate the perl 3-argument for loop into a C 3-argument for-loop. See For Loops for foreach and check out the C-style 3-argument for loop (appears first in the doc in fact!) which got "borrowed" from C in the first place and which is what you probably SHOULD be trying to translate.
The Perl one-argument for loop (really a foreach loop with a syntactic allowance being supplied) is an entirely different animal entirely and its resemblance to the C for loop should be treated as semantic and of no practical importance in ths regard.
__________________________________________________________________________________
^M Free your mind! In reply to Re^5: OpenMP from Perl?
by Moron
|
|