bpa wrote: 
> A while loop with "my $line = shift @lines" (Triode's original) failed
> when there is a blank line and yet there are more lines to follow -
> which is why I went with the "$#lines" as it meant every line was
> processed even if it was blank.
> 
> I'll need to test with a dummy playlist file and then I'll probably
> merge both approaches for a 1.6.2.
> 
> 

Got it ! In that case, might not “scalar @lines”, or somesuch, be just
the thing wanted, in place of “$#lines” ? That should give every line,
including the last one. I don’t have time to verify it before Christmas.


------------------------------------------------------------------------
mrw's Profile: http://forums.slimdevices.com/member.php?userid=38299
View this thread: http://forums.slimdevices.com/showthread.php?t=109826

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to