Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Answer: How do I match this without lookbehind?

by I0 (Priest)
on Dec 12, 2000 at 19:40 UTC ( #46266=categorized answer: print w/replies, xml ) Need Help??

Q&A > regular expressions > How do I match this without lookbehind? - Answer contributed by I0

Perl v5.6.0 does suport lookbehind
split /(?<=[^~])/ #or split /(?<!~)/ #or /(~?.)/g

Log In?

What's my password?
Create A New User
[r@j]: I am new to perl script, seeking your advice for the following requirement in perl script - Need to retrieve the status of running process with the process name without using ps -ef command.
[marto]: As discussed yesterday SoPW
[Discipulus]: r@i see perlvar in the docs: $$ is the PID of the current running process. I suppose the name will be perl anyway

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2017-10-24 07:47 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (286 votes). Check out past polls.