Quote:
Originally Posted by ownedbycats
Regarding:
Code:
program:
totalpage = $#pagecount;
pagenum = globals(pagenum);
newpercent = round(multiply ((totalpage / pagenum), 100));
|
"globals" is like "arguments", not really a function. You should say
not
Code:
pagenum = globals(pagenum);
In your case it works by accident because globals returns the value it assigns to the last argument. It would stop working if you said
Code:
pagenum = globals(pagenum, foobar);