| 1 | package App::Tel::Macro; | ||
| 2 | |||
| 3 | 7 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 7 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 7 | require Exporter; | |
| 7 | 7 | our @ISA = qw(Exporter); | |
| 8 | 7 | our @EXPORT = qw( handle_backspace handle_ctrl_z ); | |
| 9 | |||
| 10 | =head2 handle_backspace | ||
| 11 | |||
| 12 | Handle backspace for routers that use ^H | ||
| 13 | |||
| 14 | =cut | ||
| 15 | |||
| 16 | 0 | ▶ | sub handle_backspace { |
|
Subroutine
handle_backspace: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 17 | 0 | ${$_[0]}->send("\b"); | |
| 18 | 0 | return 1; | |
| 19 | } | ||
| 20 | |||
| 21 | =head2 handle_ctrl_z | ||
| 22 | |||
| 23 | Handle ctrl_z for non-cisco boxes | ||
| 24 | |||
| 25 | =cut | ||
| 26 | |||
| 27 | 0 | ▶ | sub handle_ctrl_z { |
|
Subroutine
handle_ctrl_z: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 28 | 0 | ${$_[0]}->send("exit\r"); | |
| 29 | 0 | return 1; | |
| 30 | } | ||
| 31 | |||
| 32 | 7 | 1; | |