i'm new to perl so this is hopefully simple. i keep getting the following error:
------------------------------------------------------------------------------------------------------------
syntax error at /home/dwcronin/programs/ex4_1 line 7, near "$family_name{"
Execution of /home/dwcronin/programs/ex4_1 aborted due to compilation errors.
--------------------------------------------------------------------------------------------------------------
specifically. i'm trying to learn hashes by following the o'reilly book 'learning perl" by randal schwartz.
Perl
Last Comment
kaufmed
8/22/2022 - Mon
dwcronin
ASKER
here is the code that would not upload:
#!/usr/bin/perl; # ex5_1
######################################################################################
use warnings;
use strict;
use 5.010;
#!/usr/bin/perl; # ex5_1
##########################
use warnings;
use strict;
use 5.010;
my $family_name{"fred"} = "flintstone";
~
~
~
~
~
~