fork(1) download
  1. my @input_lines = <main::DATA>;
  2. my $input_string = join /\n/, @input_lines;
  3. my @split_lines = split(/\s*[#\n\r]+\s*/, $input_string);
  4. print "$_\n" for @split_lines;
  5.  
  6. __DATA__
  7. google.com/test
  8. yahoo.com/test
  9. ##############
  10. somethingelse.com/test
  11. ##############
  12. 12345
Success #stdin #stdout 0s 4596KB
stdin
Standard input is empty
stdout
google.com/test
yahoo.com/test
somethingelse.com/test
12345