but it was not working, i mean it is not printng "found one". but errors = 0 please excuse my ignorance if my code is wrong. Reading the manual is confusing me further.. can anyone please help me with the code?@list = "C:\username\Sources"; foreach $arrchar (@list) { print "array char = $arrchar"; if($_ = /\\/) { print "\nfound one \n"; } }
Thanks,
Kumeperl
In reply to search for '\' in perl by kumeperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |