Chapter 7. If Only, Unconditionally, Forever
By the end of this chapter, you will be able to read and write the following Perl code:
use warnings;use feature qw(say);my %guests=("Joe"=>"pizza", "Medhi"=>"veggies", "Dat"=>"rice", "Vipul"=>"meat", "Anna"=>"sandwiches", "Peter"=>"dessert", );my $place="Golden Gate Park";my $when = "Tomorrow, noon";foreach (keys %guests){ if ($_ eq "Anna"){ next; } my $message=<<EOF; Hello, $_. Please join me at the $place at $when for a picnic. You will bring $guests{$_} and I'll bring the drinks. RSPV if you ...
Get Perl by Example now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.