clintonm9 has asked for the wisdom of the Perl Monks concerning the following question:
Example: test.pl
main.pl#!/usr/bin/perl sub test { print "test\n"; } 1;
Thanks for your help#!/usr/bin/perl require 'test.pl'; # what file is &test() from? I would like to see test.pl?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting perl file path from Function
by eyepopslikeamosquito (Archbishop) on Oct 04, 2010 at 04:38 UTC | |
|
Re: Getting perl file path from Function
by Anonymous Monk on Oct 04, 2010 at 04:29 UTC | |
by clintonm9 (Sexton) on Oct 04, 2010 at 18:03 UTC | |
by clintonm9 (Sexton) on Oct 04, 2010 at 19:51 UTC | |
by Anonymous Monk on Oct 04, 2010 at 21:32 UTC | |
|
Re: Getting perl file path from Function
by mjscott2702 (Pilgrim) on Oct 04, 2010 at 08:16 UTC | |
|
Re: Getting perl file path from Function
by clintonm9 (Sexton) on Oct 04, 2010 at 13:41 UTC | |
by Corion (Patriarch) on Oct 04, 2010 at 13:42 UTC | |
by clintonm9 (Sexton) on Oct 04, 2010 at 18:21 UTC | |
by Corion (Patriarch) on Oct 04, 2010 at 18:30 UTC |