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
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/
--
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]
>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
digest.
--
Martijn van Exel, [EMAIL PROTECTED]
WEBkitchen
Waterstraat 11
3511 BW Utrecht
tel/fax 030-6701818
http://www.webkitchen.nl
sing return?
Any help greatly appreciated.
--
martijn van exel -- [EMAIL PROTECTED] -- http://huizen.dds.nl/~mvexel