ruffing has asked for the wisdom of the Perl Monks concerning the following question:
print "Ourname = $ourname"; ($ourshortname = $0) =~ s!/!\\!g; $ourshortname = `dir /b $ourname`; $ourshortname =~ s/[^\.\w-]//g; $ourname =~ m!(.*)\\([^\\]*)$!; $ourname = "cgi-bin/$ourshortname"; print "ourname is now $ourname<BR>";
Added code tags - dvergin 2002-03-27
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: backtick problems with perl 5.6.1.631
by particle (Vicar) on Mar 27, 2002 at 20:19 UTC | |
by ruffing (Acolyte) on Mar 27, 2002 at 20:32 UTC | |
by Anonymous Monk on Mar 27, 2002 at 20:22 UTC | |
by stephen (Priest) on Mar 27, 2002 at 20:39 UTC | |
by particle (Vicar) on Mar 27, 2002 at 21:17 UTC | |
by ruffing (Acolyte) on Mar 27, 2002 at 20:48 UTC | |
|
Re: backtick problems with perl 5.6.1.631
by webadept (Pilgrim) on Mar 27, 2002 at 20:41 UTC |