in reply to Re: flag function
in thread flag function
while (<TEST> and !$flag){}
Just a note: if you want to do something with the line read from the filehandle (and you probably want to set the flag at least), you can't just use <TEST>: it only works in a simple while, not in a more complex condition.
1 while defined ($_ = <>) and not $seen = /test/; say $seen;
($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,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: flag function
by Marshall (Canon) on Jul 13, 2018 at 16:29 UTC |