working through functions chapter
This commit is contained in:
17
cli/functions.pl
Normal file
17
cli/functions.pl
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env perl
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
sub print_error_message {
|
||||
my $message = shift;
|
||||
print STDOUT "ERROR: " . $message . "\n";
|
||||
}
|
||||
|
||||
|
||||
print_error_message("something bad happened");
|
||||
print_error_message("something really horrible happened");
|
||||
print_error_message("something sort of annoying happened");
|
||||
|
||||
|
||||
1;
|
||||
__END__
|
Reference in New Issue
Block a user