Changeset 1567 for trunk

Show
Ignore:
Timestamp:
07/08/09 23:32:07 (5 months ago)
Author:
mpaschal
Message:

Avoid doing a deprecated scalar split (thanks, Brendan)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ActionStreams/plugins/ActionStreams/lib/ActionStreams/Event/Steam.pm

    r1566 r1567  
    8686                 
    8787                $html =~ s/\<br\ \/\>\<br\ \/\>\<br\ \/\>.+//; 
    88                 my $count = scalar split(/achieveTxtHolder/, $html); 
     88        my @splitlist = split(/achieveTxtHolder/, $html); 
     89                my $count = scalar @splitlist; 
    8990                $count = $count - 2; #This method ends up with one too many, always, and we want the last valid *INDEX* number. 
    9091