explanation needed on sort using {$a=$b}

2001-11-11 Thread eventualdeath
@a= qw (68 3 5 67 54 23 69 ); @b = sort {-1} @a; ### what happens here ! results = 5,3,68,67,69,23,54 @c = sort {$a=$b} @a; ### what happens here ! results = 3,5,23,54,67,68,69 I know that sort by default sort in ascii order, I wanted to know what exactly happens to the spaceship operator.

Re: explanation needed on sort using {$a=$b}

2001-11-11 Thread Jonathan E. Paton
@a= qw (68 3 5 67 54 23 69 ); @b = sort {-1} @a; ### what happens here ! results = 5,3,68,67,69,23,54 Hey look, its reversed the order of the numbers either side of the number 67! Extremely useful :P You shouldn't use this sort, since it breaks for other quantities of numbers. @c =

Re: Off-Topic (200%) - Where are you from?

2001-11-11 Thread Randal L. Schwartz
jcowan == jcowan [EMAIL PROTECTED] writes: jcowan ** jcowan This email and any files transmitted with it are confidential and jcowan intended solely for the use of the individual or entity to whom they jcowan are addressed. If

RE: Off-Topic (200%) - Where are you from?

2001-11-11 Thread Richard S. Crawford
Actually, I'd guess that this Lister is from someplace about 3,000,000 light years from Earth. At 06:42 PM 11/11/2001, you wrote: Going by his language it seems that this lister is from the third moon of Jupiter. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]

Re: installing modules

2001-11-11 Thread Rahul Garg
Yes, my question was about how to install my OWN modules and ur explanation worked very well... one more Question : U said,If I created a directory in /usr/local/lib/perl5/site_perl named 'Foo/' and in that directory I put a file named 'Bar.pm', then I could use that module by doing: use

RE: Off-Topic (200%) - Where are you from?

2001-11-11 Thread Robert Graham
Good morning from Pretoria,in Sunny South Africa. -Original Message- From: Etienne Marcotte [mailto:[EMAIL PROTECTED]] Sent: 09 November 2001 17:08 To: [EMAIL PROTECTED] Subject: Off-Topic (200%) - Where are you from? By reading the messages everyday I can guess most of us are from

Re: Off-Topic (200%) - Where are you from?

2001-11-11 Thread Håkan Edman
Stockholm, Sweden No!, not Switzerland... /Håkan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]