- or download this
if( defined $ARGV[2] ) {
# Handle the search string.
...
# Perform whatever default preparations are necessary in
# the absence of a defined search string.
}
- or download this
$ARGV[2] //= 'Default value';
- or download this
my $pattern = $ARGV[2] // 'Default value';