Working state
This commit is contained in:
1 parent
4310ab7323
commit
151648f44f
15 files changed
+147
-53
No files matched your search
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
# File: helloworld.pl
|
||||
#
|
||||
# Description: This file exemplifies printing 'Hello world!' in perl.
|
||||
#
|
||||
# Package: AniNIX::Foundation/HelloWorld
|
||||
# Copyright: WTFPL
|
||||
#
|
||||
# Author: DarkFeather <darkfeather@aninix.net>
|
||||
|
||||
### <summary>
|
||||
### Prints 'Hello world!'
|
||||
### </summary>
|
||||
sub PrintHelloWorld {
|
||||
print "Hello world!\n"
|
||||
}
|
||||
|
||||
### MAIN
|
||||
my ($PROG) = ($0 =~ m|.*/(.*)|) =~ m/(.*)\..*$/;
|
||||
PrintHelloWorld() if ($0 == "helloworld.pl")
|
||||
Reference in new issue
Block a user