trying to find direcotries

2002-07-07 Thread LinkS On WeB
Ok listen im trying to fin all the direcotries that are in a folder, I mean everyone. But for some reason this only prints out the first folder and not the sub folders. my @alldir = finddir("$config{home}$user{site_id}"); print $_, "\n" for @alldir; sub finddir { my $root = shift; chomp

specifying limits in perl

2002-06-15 Thread LinkS On WeB
sub uploadfile { &bytes; for ($i=1; $i<=5; $i++) { if ($q->param("file$i")) { $file = $q->param("file$i"); $format_left = format_size($left); if (($left - (length($file))) < 0) { &inerror("You are out of space in your $format_l

Uploading Help

2002-06-14 Thread LinkS On WeB
for some reason when, I do this it doesnt print any thing, it just makes the file. sub uploadfile { for ($i=1; $i<=5; $i++) { if ($q->param("file$i")) { $filename = $q->param("file$i"); $file = $q->param("file$i"); $filename =~ s/.*[\/\\]//; open (FILE,">$us

Perl Help

2002-06-13 Thread LinkS On WeB
using the stat function, say I was using $stat[9], which displays the time of the file, how would I make it just display the date. Month-DayofMonth-Year = __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.y

Help With Perl

2002-06-12 Thread LinkS On WeB
---CODE--- open(USER, "user.dat"); @user = ; close(USER); -END CODE- Ok thats my textfile and this is how I usually read through the lines ---CODE--- foreach $line (@user) { chomp($line); ($name, $site, $site_id, $des, $email, $pass) = split(/\|/,$line); } -EN