in reply to special pattern reading
If I understand you correctly then this substitution should be all you need for manipulating the filename:
use strict; use warnings; my $file = '?!?!?!/pack/something/whatever.cacshdska'; $file =~ s/..![^!]*something.*\.c//; print $file . "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: special pattern reading
by N0obieMonk (Novice) on Jan 13, 2016 at 10:12 UTC | |
by hippo (Archbishop) on Jan 13, 2016 at 10:32 UTC |