in reply to Re^2: exe with wx gui - pp/wxpar issues
in thread exe with wx gui - pp/wxpar issues
Problem twounless(caller)
Don't use string eval, especially for something like that. That should be a single function call, see qr, quotemeta, local$source_path = win_path($source_path); $destination_path = win_path($destination_path); if (!$destination_path) { $destination_path = $source_path; } my @files = <$source_path\\*>; my %seen; my $search = 'while (<>) { study;'; $search .= "++\$seen{\$ARGV} if /\\b_$project_id\\b/;\n"; $search .= "}"; @ARGV = @files; undef $/; eval $search; $/ = "\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: exe with wx gui - pp/wxpar issues
by jhoop (Acolyte) on Apr 07, 2011 at 15:27 UTC |