in reply to Re^3: will this random-text script work? how do i integrate a template?
in thread will this random-text script work? how do i integrate a template?
Is this right?
#!/usr/bin/perl –Tw use strict; use CGI ':standard'; use lib qw("/perl_modules"); use File::Random qw/:all/; my $dir = '//spam_oracle/infinity'; my $file = random_file(-dir => $dir); my @lines = random_line($fname, int(rand(5)) + 1);
Specifically, will the script know to drill down within the perl_modules directory, if the modules are within subdirectories?
And is that the correct path, if the script itself is in a cgi-bin within a subdomain on my account (mact.jesskilby.com/cgi-bin/oracle.pl)?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: will this random-text script work? how do i integrate a template?
by CountZero (Bishop) on Jan 16, 2007 at 22:10 UTC | |
by hawthorne (Novice) on Jan 18, 2007 at 17:29 UTC | |
by CountZero (Bishop) on Jan 19, 2007 at 17:34 UTC |