#!/usr/bin/perl -T; use strict; use warnings; my $password = 'a!1"a$234]5%}& & { } < \$ [ # specials \] ! " % ) ^ * # ] # end character class {28} # match exactly 28 characters ) # end capture \z # end of string /x; # match flags $password = $1 or die send_log('password_reset'); print "$password\n"; sub send_log{ my $log_type = shift; $log_type =~ s/\A([A-Za-z][A-Za-z0-9_]{7,20})\z/$1/ or die; if($log_type eq 'password_reset'){ print "The first part of a new password has been sent to\n", "your inbox. Call facilities on the internal line\n", "to recieve the next part. You will also recieve\n", "instructions for locating the pigeon wearing the\n", "last part.\n"; # exit( release_pigeon( ++$pc ) ); } exit; }