Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Seeing if two numbers have the same sign

by demerphq (Chancellor)
on Jan 11, 2008 at 19:34 UTC ( #661959=note: print w/replies, xml ) Need Help??


in reply to Re: Seeing if two numbers have the same sign
in thread Seeing if two numbers have the same sign

You probably meant !defined() where you put undef().

And personally i think your code is much harder to understand than what i posted. Longer is very often less comprehensible than shorter for the simple fact that most people can only operate on a small number of items at a time. (8 or so).

---
$world=~s/war/peace/g

  • Comment on Re^2: Seeing if two numbers have the same sign

Replies are listed 'Best First'.
Re^3: Seeing if two numbers have the same sign
by WoodyWeaver (Scribe) on Jan 11, 2008 at 19:52 UTC
    You probably meant 5..9 where you put (8 or so). :-)

      Yes. I probably did. :-) Good link BTW.

      ---
      $world=~s/war/peace/g

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://661959]
help
Chatterbox?
[Lady_Aleena]: shmem, thanks. I'm am way out of practice.
[shmem]: perl -lE '@foo = (0..3);@bar = (4..7); push @foo,@bar; say for @foo'
[Lady_Aleena]: shmem, I feel like an idiot for forgetting something so basic.
shmem puts a big cauldron of "silly con charme" on the table in the refectorium
[reisinge]: 'push @foo, @bar' is the same as '@foo = (@foo ,@bar)' ?
[shmem]: yes, at least for the result in @foo

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2017-04-27 11:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (503 votes). Check out past polls.