| 1 | package Text::AutoLink::Plugin::FTP; | ||
| 2 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use base qw(Text::AutoLink::Plugin); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | sub process | ||
| 7 | 9 | ▶ | { |
|
Subroutine
process: called CC=1 SCAR=0.0
Pod
documented
| |||
| 8 | 9 | my $self = shift; | |
| 9 | 9 | my $ref = shift; | |
| 10 | 9 | $$ref =~ s/(ftp:\/\/[A-Za-z0-9~\/._\?\&=\-%#\+:\;,\@\']+)/ | |
| 11 | 1 | $self->linkfy(href => $1); | |
| 12 | /gex; | ||
| 13 | } | ||
| 14 | |||
| 15 | 2 | 1; | |
| 16 | |||
| 17 | =head1 NAME | ||
| 18 | |||
| 19 | Text::AutoLink::Plugin::FTP - AutoLink FTP | ||
| 20 | |||
| 21 | =cut | ||