fork download
  1. #!/usr/bin/perl
  2. use strict;
  3. use warnings;
  4.  
  5. my $myString = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.
  6. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
  7. when an unknown printer took a galley of type and scrambled it to make a
  8. type specimen book. It has survived not only five centuries, but also
  9. the leap into electronic typesetting, remaining essentially unchanged.
  10. It was popularised in the 1960s";
  11.  
  12. $myString =~ s/.*\bscrambled\b//s;
  13.  
  14. print $myString;
Success #stdin #stdout 0s 6188KB
stdin
Standard input is empty
stdout
 it to make a 
type specimen book. It has survived not only five centuries, but also 
the leap into electronic typesetting, remaining essentially unchanged. 
It was popularised in the 1960s