To find out all Perl modules installed on your system, including those without documentation or outside the standard release, just do this:
|
find `perl -e 'print "@INC"'` -name '*.pm' -print
|
Splitting a single string into 2 user controlled output strings
Sometimes it is possible to solve a Perl string problem without a regular expression. The following code is for one of those occasions. The code takes an input string, and splits it into 2 output strings, with the split occurring on a user specified control character (In this case, a ':' character).
|
@array = split (":",$input_string,2);
|