Home > Archive > PERL Miscellaneous > April 2007 > Re: Cant open a file with just a relative path
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: Cant open a file with just a relative path
|
|
| Randal L. Schwartz 2007-04-25, 8:01 am |
| >>>>> "skieros" == skieros <nikos1337@gmail.com> writes:
skieros> open(FILE, ">>/somefolder/somesubfolder/digest.passwd") or die $!;
skieros> print FILE "$user:$realm:" . Digest::MD5::md5_hex("$user:$realm:
skieros> $pass") . "\n";
skieros> close(FILE);
skieros> Wehn i try to use this relative path instead of d:\www\blabla which is
skieros> absolute apache tells me it cant find the file.
This question was asked and answered on perlmonks. Please don't
repeat the same thread here.
And I find it annoying that someone posts the same question to multiple help
forums without disclosing such. It causes an unneeded waste of resources.
But, we'll always have newbies, I guess.
print "Just another Perl hacker,"; # the original
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
--
Posted via a free Usenet account from http://www.teranews.com
| |
| Michele Dondi 2007-04-29, 10:02 pm |
| On Wed, 25 Apr 2007 02:50:01 -0700, merlyn@stonehenge.com (Randal L.
Schwartz) wrote:
>But, we'll always have newbies, I guess.
Newbieness and education are orthogonal, I guess. Or at least they
don't differ much from orthogonality. Well, they shouldn't!
Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{po
p^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
..'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
|
|
|
|
|