Actually, shouldn't the array be spelled the same way in each place?
print "Shared mem ", $sharemem[0], "\n";
If it weren't for the spelling error (which 'use strict' would have warned about), the construct
print "Shared mem @sharemem[0]\n";
would have worked, even though it works more or less by accident.
Main Topics
Browse All Topics





by: manav_mathurPosted on 2005-02-03 at 10:18:27ID: 13217302
Firstly,
>print "Shared mem @sharedmem[0]\n";
Should be
print "Shared mem $sharedmem[0]\n";