Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^3: A Macro System for Perl?

by cramdorgi (Acolyte)
on Mar 26, 2008 at 08:32 UTC ( #676332=note: print w/replies, xml ) Need Help??

in reply to Re^2: A Macro System for Perl?
in thread A Macro System for Perl?

2 letter reply... Could it be that I was too terse?

I meant obviously:

macro retorexit() { if ($noexit) { return $_; } else { exit $_; } }

As I see this as a good example of a useful macro, the only other way I can interpret your reply is that you know an obvious other way to do this elegantly.
May I ask which?


Replies are listed 'Best First'.
Re^4: A Macro System for Perl?
by samtregar (Abbot) on Mar 26, 2008 at 15:40 UTC
    Oh sure, that could work. Except that this conversation happened 6 years ago! And went no where!


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://676332]
[Corion]: A good morning to everybody ;)
[choroba]: Hi Corion!
[Discipulus]: hello folks!

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2017-02-23 08:52 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (342 votes). Check out past polls.