Example Syntax error in Chapter 3 #222

Closed
azawawi opened this Issue Aug 29, 2012 · 1 comment

Comments

Projects
None yet
2 participants

azawawi commented Aug 29, 2012

Hi thanks for a great book. I found a possible syntax error in the following example in control_flow.pod

my $user_input = ' Hello ';
for ($user_input) {
s/\A\s+/; # trim leading whitespace <-------- missing /
s/\s+\z/; # trim trailing whitespace <-------- missing /

$_ = quotemeta;    # escape non-word characters

}

Owner

chromatic commented Sep 14, 2012

Fixed in 57a8a21, thanks!

chromatic closed this Sep 14, 2012

@davorg davorg pushed a commit to davorg/modern_perl_book that referenced this issue Nov 17, 2015

@chromatic chromatic Fixed a typo reported by Ahmad M. Zawawi (GH #222). 390d1bd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment