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

Re: Regex's, parentheses, and the mysterious ( ??{ } ) operator

by Laurent_R (Parson)
on Jul 11, 2013 at 21:55 UTC ( #1043826=note: print w/ replies, xml ) Need Help??


in reply to Regex's, parentheses, and the mysterious ( ??{ } ) operator

I did not really understand what your problem is, and it is a bit late for me now, so I have to give up trying to get the point. Just one point that I noticed, though, and may possibly explain unexpected behavior: the $stuff variable is not the same in the two programs:

my $stuff = "On the outside now then (we go( in( and in (&stop)(awhile +) ( further ))) but still (here) ) and now (for a while) we are out a +gain."; my $stuff = "On the outside now then (we go( in( and in(&stop)(awhile) + ( further ))) but still (here) ) and now (for a while) we are out ag +ain.";

Or to show it more clearly (I hate the way the Perlmonks site dispays code snippet, why should it cut it at line 70 or 71, making any significant code almost unreadable, at a time where most people don't have any problem displaying 250 or 300 characters on their screen?), I"ll just quote where the difference is:

in (&stop)(awhile) in(&stop)(awhile)

A space missing. Small difference. No idea if this is the source of your problem, but I thought it might be useful to let you know.


Comment on Re: Regex's, parentheses, and the mysterious ( ??{ } ) operator
Select or Download Code
Re^2: Regex's, parentheses, and the mysterious ( ??{ } ) operator
by Anonymous Monk on Jul 12, 2013 at 08:12 UTC

    Or to show it more clearly (I hate the way the Perlmonks site dispays code snippet, all configurable and stuff, why didn't I configure my user configuration options

    There , fixed it for you :) Help for User Settings, User Settings

      Or, to put it in a somewhat more user-friendly manner, click on the "user settings" link in the comment to which I am replying, and you will be taken to a long list of configuration options, none of which have anything to do with line-wrap or code-wrap. However, at the top of that page are links for ten or so *more* pages of settings that you can mess with. Fortunately the very first of these, "Display Settings", has the needed stuff. Within the several tables of configuration options are selections to turn off code wrap altogether, or increase the length before wrap happens. I turned off wrapping, it works for me.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2014-10-01 09:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (392 votes), past polls