What happen with my code? use strict; use warnings; use diagnostics;
my @words = ("this","that"); # With this code $words[5] = "bad idea"; for my $element (@words){ print "$element\n"; } ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "words.pl" 13L, 167B 1,1 All Use of uninitialized value $element in concatenation (.) or string at words.pl line 11. at words.pl line 11. -- With kindest regards, William. ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org ⠈⠳⣄⠀⠀⠀⠀ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/