Hissingsid has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl @filelist =("includes.cgi","connect.cgi","commit.cgi"); print "Content-type:text/html\n\n"; $path = $ENV{'SCRIPT_FILENAME'}); foreach $filelist (@filelist){ $path =~ s/permissions.cgi/$filename/gi; print "$filelist -- $path<br />"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Substitution on string held in a variable
by tinita (Parson) on Apr 01, 2004 at 11:03 UTC | |
by Hissingsid (Sexton) on Apr 01, 2004 at 11:22 UTC | |
|
Re: Substitution on string held in a variable
by matija (Priest) on Apr 01, 2004 at 13:22 UTC | |
by Hissingsid (Sexton) on Apr 01, 2004 at 14:37 UTC | |
by Hissingsid (Sexton) on Apr 01, 2004 at 14:04 UTC |