Welcome to the Monastery | |
PerlMonks |
abstract expect callby georgecarlin (Acolyte) |
on Oct 25, 2013 at 21:15 UTC ( [id://1059757]=perlquestion: print w/replies, xml ) | Need Help?? |
georgecarlin has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks, I'm a perl beginner and trying to improve the re-usability of my code I have a question regarding expect.pm, specifically how to create an abstract expect call.
In this example expect simultaneously waits for 3 patterns to occur and then the respective stuff is done... How would I go about creating an abstract Block that would work in above way for @expectthese and @sendthese without pre-defining the amount of elements these arrays have and consequently without knowing how many [qr//,sub {do_stuff;}], blocks are needed? Thanks in advance
Back to
Seekers of Perl Wisdom
|
|