title: How to detect certain special characters in perl string?
body: <p>I want to detect the presence of certain characters like @ # $ % \ / in a Perl string. Can anyone suggest a regex for this. I tried few but it is not working.</p>
  
  <pre><code>=~ /(\W@\W#\W%\W*)/)
  =~ /(@|#|%|*)/) 
  </code></pre>
  
  <p>I tried these but it is not working. </p>
  
  <p>Can anyone suggest where i am going wrong?</p>