Either a local machine or a server should produce the same output, given the same code. The fact that an array in scalar context gives the number of elements does not vary. Like a law of mathematics it holds true for all places in time and space (assuming the same version of perl).
Most likely the code is slightly different in each case, the following, for example, give different results:
print 'Array:'.@content."\n";
print 'Array:',@content,"\n";