Subject: | documentation unclear on continuation behaviour, and macro that matches first then sends |
Date: | Thu, 04 May 2017 15:22:02 +1000 |
To: | bug-Net-CLI-Interact [...] rt.cpan.org |
From: | Alexander Zangerl <alexz [...] opmantek.com> |
1. Manual/Cookbook.pod
states that continuation can be inline (mentioned elsewhere, too)
or with a macro that starts with a match, giving the example macro
more_pages.
the rest of the docs doesn't mention this match-then-send macro format
anywhere, for example lib/Net/CLI/Interact/Phrasebook.pm does not include any
hint of that syntax or the intended behaviour.
question: does a macro with match-then-send allow multiple rounds,
like normal macros do?
ie. is macro thing, match prompt1, send x, match prompt2,
send y, [implicit or explicit last match someprompt], supported or not?
question: the cookbook pod says the send in match-then-send doesn't get
an ors attached, the phrasebook.pm page does not say anything about when
ors is not attached, just 'normally all sent stuff gets it'.
which one is correct?
question: does a macro with match-then-send support
using a named prompt instead of the inline regex?
ie. macro more_pages, match indicator_name, send 'some trigger text'
qustion: does a continuation macro with match-then-send automatically
apply once or N times?
question: does a macro with match-then-send support 'or' with named
prompts, or just one single inline regex as in the cookbook example?
question: how does a macro with match-then-send react to the match
not triggering at all? does it not send anything then? does n::c::i return
a failure instead?
or is a continuation macro with match-then-send always matching
the given regex in parallel with an implicit or explicit last match?
same question for inline follow macros:
how does an in-line "follow /trigger/ with 'sendme'" react to no trigger match?
does it automatically match some implicit other prompt instead? the
phrasebook.pm pod seems to imply that, but can a match-then-send macro set its
own, final, prompt? what about the /trigger/ being present again after
sendme has been issued? is in-line continuation supported
together with multiple send-match-send-match
sequences or not?
2. Manual/Cookbook.pod says metachars like \n are supported in continuations,
and so does the pod of lib/Net/CLI/Interact/Phrasebook.pm.
question: are metachars supported everywhere, or just in continuations?
regards
az
--
Alexander Zangerl
email: alexz@opmantek.com
skype: alex.zangerl
mobile: +61 415 482 341
web: https://community.opmantek.com/