Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: How do i sort an numeric array without using sort function. Is ther any way to sort it just with loop in perl??

by choroba (Cardinal)
on Nov 03, 2017 at 09:08 UTC ( [id://1202671]=note: print w/replies, xml ) Need Help??


in reply to Re^2: How do i sort an numeric array without using sort function. Is ther any way to sort it just with loop in perl??
in thread How do i sort an numeric array without using sort function. Is ther any way to sort it just with loop in perl??

@$_ is a shorter way of saying @{ $_ } or $_->@*, it dereferences $_ as an array reference, i.e. it returns the referenced array.
my $array_ref = [ 11, 12, 42 ]; my @array = @$array_ref; # Same as @array = (11, 12, 42).

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
  • Comment on Re^3: How do i sort an numeric array without using sort function. Is ther any way to sort it just with loop in perl??
  • Select or Download Code

Replies are listed 'Best First'.
Re^4: How do i sort an numeric array without using sort function. Is ther any way to sort it just with loop in perl??
by Tabish (Acolyte) on Nov 03, 2017 at 09:18 UTC

    Thank you very much! the Example was good and clear :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-26 03:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found