in reply to different outputs for array print
print @modify."\n" ;The concatenation operator (.) enforces scalar context on the array, instead of list context. When an array is evaluated in scalar context, it returns the number of elements in the array, rather than the contents of the array elements.
If you change the period to a comma, the array will be evaluated in list context by print, and you should see the contents of the file. Give that a try.
|
|---|