home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / tsw / TSW_3.4.0.exe / Apache2 / perl / getSelected.al < prev    next >
Encoding:
Text File  |  2003-12-16  |  501 b   |  25 lines

  1. # NOTE: Derived from ..\blib\lib\Tk\Listbox.pm.
  2. # Changes made here will be lost when autosplit is run again.
  3. # See AutoSplit.pm.
  4. package Tk::Listbox;
  5.  
  6. #line 893 "..\blib\lib\Tk\Listbox.pm (autosplit into ..\blib\lib\auto\Tk\Listbox\getSelected.al)"
  7. sub getSelected
  8. {
  9.  my ($w) = @_;
  10.  my $i;
  11.  my (@result) = ();
  12.  foreach $i ($w->curselection)
  13.   {
  14.    push(@result,$w->get($i));
  15.   }
  16.  return (wantarray) ? @result : $result[0];
  17. }
  18.  
  19. 1;
  20. __END__
  21.  
  22.  
  23. 1;
  24. # end of Tk::Listbox::getSelected
  25.