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

Re^4: A Functional Substitute

by mrborisguy (Hermit)
on Aug 10, 2005 at 23:53 UTC ( [id://482810]=note: print w/replies, xml ) Need Help??


in reply to Re^3: A Functional Substitute
in thread A Functional Substitute

I had thought about this as well, or even making the entire syntax something like $x = $y =~ \s/foo/bar; or something of the sort. To be honest though, everything worked well when I posted this - and I didn't think I was actually parsing too much Perl on my own - but as I expanded, I realized what I wanted to - things like my $foo = sub_returns_string() \~ s/bar/foo/;1 just got too messy and needed too much parsing of Perl, so as much as I love this idea, I've dropped it - for now.

1It seems like there's just increasing complexity to make it 'just work' like people would expect it to. Something like my $foo = subroutine( this => 'contains an equals', $self->{ scalar @array } ) =~ s/a/b/g; although probably would be rarely used, would still need to just work. So I'm really beginning to understand why people shy away from using source filters, because really there is a lot of parsing Perl, even for the simple thing like I wanted to do, where I thought I could isolate the problem and not have to do much.

    -Bryan

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-03-28 17:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found