undef $/; open (IN, "$ARGV[0]"); my $string=; close(IN); (@arr)=$string =~ m#ORIGIN(.*?)//#gsi; print @arr;