Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Do you know where your variables are?
 
PerlMonks  

Re^2: printing values within a given range

by blazar (Canon)
on May 03, 2005 at 10:43 UTC ( [id://453604]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: printing values within a given range
in thread printing values within a given range

The following implementation assumes that you only provide one parameter on the command line
(Only a minor side note to your excellent post, but) no, it doesn't!
  • Comment on Re^2: printing values within a given range

Replies are listed 'Best First'.
Re^3: printing values within a given range
by polettix (Vicar) on May 03, 2005 at 11:03 UTC
    Well... it doesn't but it can.

    The OP only opened the first file for getting input, and it could imply that other parameters on the command line could be used for other reasons. OTOH, my implementation reads from all "files" in the command line, not only the first one.

    Of course this is a subtlety in the particular case, but I hope know that everyone here always strives to post as little code as possible to explain h(er|is) problem, and using my solution inside a more elaborate enviroment requires some kind of attention.

    Flavio (perl -e 'print(scalar(reverse("\nti.xittelop\@oivalf")))')

    Don't fool yourself.
      I fully agree with you. It was just nitpicking. It's mostly a matter of phrasing: the original one may confuse the OP (and/or other newbyes subsequently reading the thread). A hopefully better one may be "this assumes all arguments on the cmd line are files to be processed". Ciao ciao...
        I fully agree, I'm changing it!

        Flavio (perl -e 'print(scalar(reverse("\nti.xittelop\@oivalf")))')

        Don't fool yourself.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://453604]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.