- or download this
$ cat myscript.pl
#!/usr/bin/perl -w
...
print "yeah!\n" if $thingy->is_thing();
print "boo!\n" unless $thingy->is_thing();
- or download this
$ cat MyModule.pm
package MyModule;
...
}
...
1;
- or download this
#use lib('.');
#use MyModule;
- or download this
$ cat myscript.pl MyModule.pm > newscript.pl
$ ./newscript.pl
$ boo!