Commits

Shlomi Fish  committed 5c39924

Correct \# to #.

It was in several places in the XML and resulted in the final HTML.

  • Participants
  • Parent commits 380a7f1

Comments (0)

Files changed (1)

File src/tutorials/bad-elements/perl-elements-to-avoid.xml-grammar-vered.xml

 PASSWD:
 while (my $line = <$pass_fh>)
 {
-    if ($line =~ m{\A$username}) \# Bad code here.
+    if ($line =~ m{\A$username}) # Bad code here.
     {
         print "Your username is in /etc/passwd\n";
         last PASSWD;
 if ( COND() )
 {
      print "Success!\n";
-     call_routine() \# No semicolon here.
+     call_routine() # No semicolon here.
 }
 </bad_code>
 <p>
 <code_blk syntax="perl">
 my @characters = split(//, $string);
 my $chars_aref = [ split(//, $string) ];
-my $num_chars = () = split(//, $string); \# Use length instead in this case.
+my $num_chars = () = split(//, $string); # Use length instead in this case.
 </code_blk>
 <p>
 A lot of the confusion stems from the fact that people expect arrays in Perl