Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

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?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2015-11-28 02:05 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (737 votes), past polls