Help for this page

Select Code to Download


  1. or download this
      my $a = "foo";
      my $b = "bar";
    ...
      print "ne" if ($a ne $a);    # prints nothing
      print "RE" if $a =~ /$c/;    # prints "RE"
      print "RE" if $a =~ /f.*/;    # prints "RE"
    
  2. or download this
    #!/usr/bin/perl -w
    
    ...
      # Everything that is found is deleted from the start of
      # the string.
      # repeat as long as there is stuff in the slurped line