> hi i need lots of help. i'm fairly new to perl and i only compiled > win32::gui yesterday. i have a listview that i'd like to Don't worry, we've all been fairly new. With most of the stuff, most of us still are.
> my($stuff) = @_; > sort $a <=> $b, $stuff; This looks like a Perl problem rather than Win32-GUI. You assign the scalar $stuff the first item of the list @_. That's the only item you'll get that way. Your call to sort has nothing to do. Plus, you don't put the result of the sort anywhere. What you want may be more like my @sortedstuff = sort $a <=> $b, @_; but since we're talking about a listview and these things have strings, it would have to be my @sortedstuff = sort $a cmp $b, @_; I hope you don't mind my saying so, but you're gonna need to be more secure in those basics or you'll never know where the problem is. There's tons of tutorials out there. I myself learned most from just reading the core docu - if you installed ActiveState Perl, it's probably C:\Perl\html\lib\Pod\perl.html