Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Regex error when [] occurs in file..

by moritz (Cardinal)
on Mar 03, 2008 at 15:38 UTC ( #671666=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ($temp =~ /#/){
            $temp =~ s/#$'//;
    }
    
  2. or download this
    my $varaible = '[a-z]';
    m/\Q$variable\E/  # matches literal [a-z], not a character class.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2023-11-30 00:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?