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

Re^4: -pi -e argv repeater

by OfficeLinebacker (Chaplain)
on Feb 04, 2007 at 17:13 UTC ( #598200=note: print w/ replies, xml ) Need Help??


in reply to Re^3: -pi -e argv repeater
in thread -pi -e argv repeater

Ikegami,
I see you disagree with Damian Conway (as expressed in Perl Best Practices--pp 194-196 for those of you following from home). I wish I understood better the exact thought processes behind each of your approaches.

Either way, yes, $^I is the way to go (or, if you really want to be a Boy Scout about it, use English, only without the evil regexp vars, and use $INPLACE_EDIT in place of $^I).


I like computer programming because it's like Legos for the mind.


Comment on Re^4: -pi -e argv repeater
Re^5: -pi -e argv repeater
by BrowserUk (Pope) on Feb 04, 2007 at 19:13 UTC

    Another justifiction: $INPLACE_EDIT is "clearer" that $^I.

    If you don't understand the process set in motion by setting an appropriate value into this magic variable, via either alias; and what constitutes an 'appropriate value'; and what other pieces of magical context are required to make it all work; then you are going to have to look it up. And it is just as easy to look up $^I as it is to lookup $INPLACE_EDIT.

    And if you are familiar with the requirements and effect of setting a value into that magic variable, then $INPLACE_EDIT is no clearer than $^I.

    The former is in no way enough to explain what's going on, if you are unfamiliar with the operation.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
Re^5: -pi -e argv repeater
by ikegami (Pope) on Feb 04, 2007 at 20:09 UTC
    I can't comment until I know to what you are referring. What is on those pages?
Re^5: -pi -e argv repeater
by OfficeLinebacker (Chaplain) on Feb 04, 2007 at 23:20 UTC
    Ikegami:

    Basically Damian says never prototype subs. I don't know how much I can type in here without violating copyright.

    Browser:

    What prior justifictions are there?


    I like computer programming because it's like Legos for the mind.
        Dang.

        Good stuff. I'll be printing out some threads and reading them on the Metro. I must admit I tend to go "whole hog" and since I just finished PBP I am in a state of hyper-hydration from drinking the proverbial Kool-Aid. Sorry for pissing some of it out here.

        BAD Monk!

        I like computer programming because it's like Legos for the mind.
      I avoid prototypes unless they are required. As stated in the post to which you replied, pie { CODE } SCALAR, LIST would not work without the prototype.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2014-04-16 17:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (433 votes), past polls