'global' variables

2001-09-27 Thread Martijn van Exel
Hi all, I stuff all subroutines for my current perl experiment in a separate file, which i 'require' when needed. I would like to set a number of global variables in this file, which would then be imported together with the subroutines. How would I go about doing this? -- martij

checking for existence of a file.

2001-09-21 Thread Martijn van Exel
ile with that name exists in the directory specified, if it does, try again, if not, open the (new) file. Can I do this using the `filename` construction? Could this work? Are there any security / performance issues? -- martijn van exel -+- [EMAIL PROTECTED] -+- http://huizen.dds.nl/~mvexel/ --

# of lines in file

2001-07-16 Thread Martijn van Exel
database/$_") or die "$!"; @temp = FILEH; close FILEH; $lines = @tempfile; $lines = 0 if !$lines; print " - $lines entries\n"; -- Martijn van Exel WEBkitchen - http://www.webkitchen.nl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Checking for odd/even

2001-06-22 Thread Martijn van Exel
>On Fri, 22 Jun 2001, Martijn van Exel wrote: > >> Why the $! does >> >> (int($cnt/2) == ($cnt/2)) >> >> not return TRUE for an even $cnt and FALSE for an odd $cnt ? > >Use the modulus operator %. It returns a remainder of a division -- in >the ca

Checking for odd/even

2001-06-22 Thread Martijn van Exel
digest. -- Martijn van Exel, [EMAIL PROTECTED] WEBkitchen Waterstraat 11 3511 BW Utrecht tel/fax 030-6701818 http://www.webkitchen.nl

referencing and subroutines.

2001-04-17 Thread Martijn van Exel
sing return? Any help greatly appreciated. -- martijn van exel -- [EMAIL PROTECTED] -- http://huizen.dds.nl/~mvexel