Hello All,
i am new to perl programming. i am trying to write a program to find number of occurence of '\' in an array [file path]. I tried the follwing code,
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?
Thanks,
Kumeperl
i am new to perl programming. i am trying to write a program to find number of occurence of '\' in an array [file path]. I tried the follwing code,
Code:
@list = "C:\username\Sources" foreach $arrchar (@list) { print "array char = $arrchar"; if($_ = /\\/) { print "\nfound one \n"; } }
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?
Thanks,
Kumeperl
Comment