Ask a Question related to PERL Modules, Design and Development.
-
Tassilo v. Parseval #1
Re: ASP -> PERL Script QUestion..PLEASE
Also sprach kalusalu:
Must be:> Hello..I was browsing thru the newsgroups ...and was wondering if anyone
> here can be of assistance to me....as I am very very new to PERL..and have
> this ASP SCRIPT..I have to convert...
>
><%
> 'Response.Content.Type = "text/plain"
> vpath = Request("vpath")
>
> IF vpath = "" then
> vpath = "/"
> END IF
>
> realPath = server.mappath(vpath)
>
> Set fs = CreateObject("Scripting.FileSystemObject")
> Set f = fs.GetFolder(realPath)
>
> response.write f.Size & vbcrlf
> response.write.realPath & vbcrlf
> response.write vpath & vbcrlf
> %>
>
> it outputs the following:
> 34342323423 D:\www-roots\[url]www.example.com.80/wwwroot/[/url]
>
> the diskusage the real path the virtual path
>
> I have written this..
>
> # $d = det_dir_name();
>
> $size = 0;
> DIR = opendir $d
>
> While (readdir DIR) {
while (local $_ = readdir DIR) {
The body of your while-loop is essentially a no-op. Perhaps you want to> next if /^\.\.?$/ ;
> next if -d$_;
> $size == -s $_;
> }
move the two consecutive lines into the while-block?
What is det_dir_name() supposed to do anyway? Can you describe it? I was> print $size
> print $d
>
> cannot find a function for this det dir name...any ideas..and how I convert
> this ASP SCRIPT ????
unable to deduce that from the above ASP script.
Tassilo
--
$_=q#",}])!JAPH!qq(tsuJ[{@"tnirp}3..0}_$;//::niam/s~=)]3[))_$-3(rellac(=_$({
pam{rekcahbus})(rekcah{lrePbus})(lreP{rehtonabus}) !JAPH!qq(rehtona{tsuJbus#;
$_=reverse,s+(?<=sub).+q#q!'"qq.\t$&."'!#+sexisexi ixesixeseg;y~\n~~dddd;eval
Tassilo v. Parseval Guest
-
Control a non-perl image viewer from perl script
Below is a (non-finished) script that trys to run a linux viewer called eog (eye of gnome) in a script that will eventually allow me to power thru... -
Effeciency question - perl scripts v's perl exe's
Max Adams wrote: The only existing Perl compiler is part of perl. Anything else is just a packager that puts a perl, required modules, and the... -
Help with Perl Script
Any help on this would be great since its a free script there is no support. I have a website on a win2k server running MSFP 2002 extensions. The... -
ASP --> PERL SCRIPT HELP>>PLEASE>>
Hello..I was browsing thru the newsgroups ...and was wondering if anyone here can be of assistance to me....as I am very very new to PERL..and have... -
Execute shell script from a perl script
Hi, How can I executed a Unix shell script from a Perl script. The shell script is a dump of a oracle table to a file. The perl script is for...



Reply With Quote

