Public Scratchpad | Download, Select Code To D/L |
What I'm trying to do is find $rFile in $_ and add it to an array.
This matches only the whole string.
if ( length($rfile) > 0 ) { foreach $item (@clean){ $continue = index($item, $rfile); if ( $continue == 0 ) { $output[++$#output] = $item; } }