in reply to Re^17: how to print out windows service status
in thread how to print out windows service status

what is the difference here?
  • Comment on Re^18: how to print out windows service status

Replies are listed 'Best First'.
Re^19: how to print out windows service status
by choroba (Cardinal) on Aug 03, 2017 at 22:24 UTC
    while (@services) repeats the loop while the array isn't empty. It doesn't assign any element to any variable, and as you don't change the array in the loop, it runs forever.

    for (@services) assings elemnts of @services to the implicit variable $_, one by one. After looping over all the elements (each element once), it stops.

    ($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,