http://qs321.pair.com?node_id=997292

truthseeker66 has asked for the wisdom of the Perl Monks concerning the following question:

# My Code in the file.
#!usr/bin/perl use warnings; @array = (1 .. 10); for ($1 = 0; $i <= 10; $i++) { $element = $array[$i]; print "Element $1 equals $element \n"; }
# The output of executing the above file.
C:\JPARK\JPPERL>test.pl Modification of a read-only value attempted at C:\JPARK\JPPERL\test.pl + line 7. C:\JPARK\JPPERL>test.pl Modification of a read-only value attempted at C:\JPARK\JPPERL\test.pl + line 7. C:\JPARK\JPPERL>