Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Something is wrong with this pattern

by samarzone (Pilgrim)
on Dec 24, 2010 at 06:55 UTC ( #878978=note: print w/replies, xml ) Need Help??

in reply to Something is wrong with this pattern

The value inside $operator (supposed to "." in case of "11.5") is interpreted as special character inside regular expression. Escape its special meaning as following


You can better use split for this if you have only one "$operator" in a string

($left_str, $right_str) = split(/\Q$operator\E/, $celldata);

-- Regards - Samar

Replies are listed 'Best First'.
Re^2: Something is wrong with this pattern
by tej (Scribe) on Dec 24, 2010 at 07:30 UTC

    Thank you samarzone

    It is working fine now...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://878978]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2017-12-12 18:49 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (335 votes). Check out past polls.