The OP won't understand it (heck even I don't)Want a spoiler?
The numbers are the ordinals of the single chars of the filename "part3.txt".open OUTPUT, join "", map chr,112,114,116,51,46,116,120,116; $\=""; $/=\1;
$\="$\$_"; simply concatenates the read char with $\.while(<OUTPUT>) { $\="$\$_"; $_=$\; $\ = substr((push @w,$\),0,0) if $\=~ /\s$/msg; }
Alter the regex here to your liking.print grep{ /^\b.*(p).*$/msgi } @w
In reply to Re^3: Pattern matching
by holli
in thread Pattern matching
by Stud_Perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |