working through functions chapter
This commit is contained in:
parent
3af25d3369
commit
a0a4ec95a9
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__
|
Loading…
Reference in New Issue
Block a user