Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: search for '\' in perl

by tinita (Parson)
on Dec 12, 2011 at 14:11 UTC ( #943092=note: print w/ replies, xml ) Need Help??


in reply to search for '\' in perl

please read perlintro, Modern Perl and/or one of the other tutorials. you're doing wrong almost everything what could possibly go wrong =)

you are not using warnings and strict.
the element in @List will contain the string "C:SernameSources".
you are trying to use $_ but $arrchar is the variable you want to do the matching on.
by saying $_ = /.../ you are assigning to $_. you have to say $arrchar =~ /\\/


Comment on Re: search for '\' in perl
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://943092]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2015-07-29 07:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls