Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Deparse isn't as reliable as I thought

by harleypig (Scribe)
on Mar 04, 2006 at 00:21 UTC ( #534397=note: print w/ replies, xml ) Need Help??


in reply to Re: Deparse isn't as reliable as I thought
in thread Deparse isn't as reliable as I thought

Thanks. I didn't know about Concise.

The only difference I can see in these two is the asterisk (*):

</> pushre(/"\\s+"/ => @f) s*/64 ->4 (split " ") </> pushre(/"\\s+"/ => @f) s/64 ->4 (split ?\s+?)

The most I've been able to find out is that the '*' means 'do something weird for this op' and a reference to op.h, which says 'On pushre, re is /\s+/ imp. by split " "'. We already know this.

So this is gonna have to be one of those cases where I'm just gonna have to accept it as a peculiarity of perl. This is not a big issue as I won't be running into this any time soon again.

Also, the magic only happens when assigning to an array, using in implied contexts or assigning to a scalar the " " is *not* converted to ?\s+?.

Harley J Pig


Comment on Re^2: Deparse isn't as reliable as I thought
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (11)
As of 2015-07-08 05:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls