I am trying to get an exact match of $file with $data.I am using the below if condition,but that doesnt seem to match and it matches other data aswell?How to get an exact match?I only want to match "adi"
$data="Adi";
$file="$(ROOT)/../../../../../../../Audio_Driver/adie_lib/$(CPU)/adi"
How to get an exact match of $dataif ($file =~ /^\/\Q$data\E$/i) { }
In reply to How to get an exact match of files by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |