Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2023-10-04 20:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?