[EMAIL PROTECTED] wrote: > Hallo!
Hello, > I'm a novice Perl programmer. I want to make a subdirectory in the > path: /data/home/collette/exponat. My code looks like this: > > $invnummer = $FORM{'invnummer'}; > $path = "/data/home/collette/exponat"; > chdir(path); ^^^^ You are missing the dollar sign. Check in the cuurent directory to see if it was created there. chdir $path or die "Cannot chdir to $path: $!"; > if ($invnummer ne "") { What if $invnumber has the value undef? if ( length $invnumber ) { > mkdir($invnummer, 0755) || die ("Cannot mkdir $invnummer $!"); > } > The code doesn't seem to have any errors, but the subdirectory is > not created whenever I give in the invnummer. > What could be the reason? John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]