Actually I just checked my assumption, and I have to correct what I said. Those silly modules I mentioned actually write over your source code it seems, or generate a new source file. But that technique could work as well.
On Tue, Nov 24, 2009 at 10:55 AM, rob levy <[email protected]> wrote: > I don't understand the advantage of this, what's wrong with arrows? > > What you are trying to do is possible though. I think you can do something > in the begin block, read your source code and do replacements before > evaluating the code. Like Acme::Bleach or Acme::Eyedrops does. > > I have never used the begin block myself, but I think that is how you would > do it. > > Rob > > > On Tue, Nov 24, 2009 at 7:51 AM, Steve Tolkin <[email protected]>wrote: > >> Is it possible to use dot notation in Perl 5, possibly by installing a >> module etc.? >> >> If so, please send a link to a moderately small working example. >> >> >> >> Can the parentheses be omitted when there are no arguments? >> >> e.g. if ($s.er) # where er() is a method >> >> >> >> Can it be mixed this with regular function notation? >> >> e.g. w($s.er) >> >> >> >> Can the dot notation be used of the LHS of an assignment to actually store >> a >> value? >> >> e.g. $s.er = "foo"; >> >> >> >> If so, would the following be valid, or do I need to use something like >> memoization instead? >> >> e.g. $s.er = $s.er; >> >> >> >> I >> >> >> >> Thanks, >> >> Steve >> >> >> >> >> _______________________________________________ >> Boston-pm mailing list >> [email protected] >> http://mail.pm.org/mailman/listinfo/boston-pm >> > > _______________________________________________ Boston-pm mailing list [email protected] http://mail.pm.org/mailman/listinfo/boston-pm

