This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Small typo in example.
[perl5.git] / pod / perlretut.pod
index 7131769..22fc44a 100644 (file)
@@ -2088,7 +2088,7 @@ algorithm.
     while( $command = <> ){
         $command =~ s/^\s+|\s+$//g;  # trim leading and trailing spaces
         if( ( @matches = $kwds =~ /\b$command\w*/g ) == 1 ){
-            print "command: '$matches'\n";
+            print "command: '@matches'\n";
         } elsif( @matches == 0 ){
             print "no such command: '$command'\n";
         } else {