Re: Syntax of mkdir()

2002-06-14 Thread Jeff 'japhy' Pinyan
On Jun 13, John W. Krahn said: >> if ($invnummer ne "") { > >What if $invnumber has the value undef? If $invnummer [sic] is undef, then in a string context, $invnummer DOES eq "", so he's safe. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #

Re: Syntax of mkdir()

2002-06-13 Thread John W. Krahn
[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 missi

Re: Syntax of mkdir()

2002-06-13 Thread bss96kci
Hallo! 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); if ($invnummer ne "") { mkdir($invnummer, 0755) || die ("Cannot mkdir $invnumm