Title: How to track down "Memory fault"
We recently upgraded several bits of software (OS, database, 3rd party app). We then experienced a performance problem (with memory management). Resetting some OS parameters seems to have cured this problem.
However, during the investigations, the sys
Title: foreach and an array of hashes
learn to use Data::Dumper to see what your data looks
like.
@emp looks like:
$VAR1 = [
{
'position' =>
'Cook',
'age' =>
50, 'name'
=> 'Bob'
},
{
'position' =>
'Receptionist
Title: foreach and an array of hashes
is it possible to foreach through and array of hashes
and reference the objects attributes?
In testing I am just trying to print each employee name.
my @emp;
$emp[0]=new_employee("Bob",50,"Cook");
$emp[1]=new_employee("Jane",20,"Receptionist");
$emp[2]
Title: combining functions & using there return values
in the following scenario I tried to nest lc() within a grep and wasn't able
to get expected results. the following greps the output of unix "ps" looking
for Oracle SID apache processes and is expecting a count greater than 0.
if ((grep
thanks Bill,
I agree with you,
my website has users from different timezones, you see.
I let them choose the language they view the site in
and so I also want them to see times in their own timezone
I do have the GMT time in the database,
and as you suggested I am using localtime (or trying to)