2 Einträge, 1 Seite |
waitFor(/OK|ERROR|\+CME ERROR: *(0-9)+/, 5.0); # warte 5s auf 'OK' oder 'ERROR' oder '+CME ERROR:<errorCode>
waitFor("OK|ERROR|\\+CME ERROR: *(0-9)+", 5.0); # warte 5s auf 'OK' oder 'ERROR' oder '+CME ERROR:<errorCode>
waitFor(qr/OK|ERROR|\+CME ERROR: *(0-9)+/, 5.0);
1
2
3
4
5
6
qr/STRING/imosx
This operator quotes (and possibly compiles) its STRING as a
regular expression. STRING is interpolated the same way as
PATTERN in "m/PATTERN/". If "'" is used as the delimiter, no
interpolation is done. Returns a Perl value which may be used
instead of the corresponding "/STRING/imosx" expression.
2 Einträge, 1 Seite |