- or download this
if (...) {
if (...) {
...
} else {
return 0;
}
- or download this
($msg =~ /^([^\s]+)/) or return 0;
$alias = $1;
...
($msg =~ /-auto_connect="([^"]+)"/) or return 0;
$auto_connect = $1;
- or download this
# Regular expressions to apply
my $a_regexes = [
...
# Assign to the desired variables
my ($alias, $address, $port, $nick,
$password, $prefix, $auto_connect) = @results;
- or download this
# Define the tokens we wish to extract
my @tokens = qw( address port nick password prefix auto_connect );
...
# Assign to the desired variables
my ($address, $port, $nick, $password, $prefix, $auto_connect) = @r
+esults;