in reply to Re:Creating Keywords!
Assuming that file is called keywords.pl, and is in the @INC path, a program that uses them could look like:#!/usr/bin/perl -w use strict; sub seven_dwarves_names { return qw(sleepy happy grumpy dopey sneezy bashful doc); } 1;
Of course you may want your keywords in a different manner, such as hash keys or something else. Have the shared function return the data however you want!#!/usr/bin/perl -w use strict; require "keywords.pl"; ... my @dwarves = seven_dwarves_names(); ...
|
|---|