Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    use warnings;
    $currentSentence =~ s/[\ba\b|\ban\b|\bthe\b]//g;
    exit;
    
  2. or download this
    P:\>rmv1.pl
    Global symbol "$currentSentence" requires explicit package name at P:\
    +rmv1.pl line 4.
    Execution of P:\rmv1.pl aborted due to compilation errors.
    
  3. or download this
    #!/usr/bin/perl
    use strict;
    use warnings;
    my $currentSentence =~ s/[\ba\b|\ban\b|\bthe\b]//g;
    exit;
    
  4. or download this
    P:\>rmv2.pl
    Use of uninitialized value $currentSentence in substitution (s///) at 
    +P:\rmv2.pl line 4.
    
  5. or download this
    #!/usr/bin/perl
    use strict;
    ...
    my $currentSentence = "The big dog rolled in an open field filled with
    + a type of grass.";
    $currentSentence =~ s/[\ba\b|\ban\b|\bthe\b]//g;
    exit;
    
  6. or download this
    P:\>rmv3.pl
    
    P:\>
    
  7. or download this
    #!/usr/bin/perl
    use strict;
    ...
    $currentSentence =~ s/[\ba\b|\ban\b|\bthe\b]//g;
    print "[$currentSentence]\n";
    exit;
    
  8. or download this
    P:\>rmv4.pl
    [T big dog rolld i  op fild filld wi  yp of grss.]