gryng has asked for the wisdom of the Perl Monks concerning the following question:
The above code curiously eats memory like a fiend! I'm not sure if this is expected behavior or not, but it caught me as a surprise while writing a (slightly) more complex program that had the same 'no warnings' within an eval. I don't have a really intellegent guess as to why it would legitimately or illegitimately be doing this, so I'm just throwing this one out there. I've gotten around the problem in my program by removing the need for the 'no warnings'. (It should be noted that if warnings was not turned on initially the program will not thrash the memory). Ciao, Gryn p.s. Hi guys, long time, no code.#!/usr/bin/perl -w use strict; eval 'no warnings' while (0==0);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: eval + no warnings = no memory
by clintp (Curate) on Jan 30, 2001 at 05:47 UTC | |
|
(tye)Re: eval + no warnings = no memory
by tye (Sage) on Jan 30, 2001 at 07:16 UTC | |
by gryng (Hermit) on Jan 30, 2001 at 09:48 UTC | |
by tye (Sage) on Jan 30, 2001 at 12:04 UTC | |
by gryng (Hermit) on Jan 30, 2001 at 23:56 UTC | |
by tye (Sage) on Jan 31, 2001 at 02:40 UTC | |
|
Re: eval + no warnings = no memory
by MeowChow (Vicar) on Jan 30, 2001 at 04:21 UTC | |
|
Re: eval + no warnings = no memory
by AgentM (Curate) on Jan 30, 2001 at 04:15 UTC | |
|
Re: eval + no warnings = no memory
by Fastolfe (Vicar) on Jan 30, 2001 at 03:29 UTC | |
by gryng (Hermit) on Jan 30, 2001 at 03:58 UTC | |
|
Re: eval + no warnings = no memory
by gryng (Hermit) on Jan 30, 2001 at 02:17 UTC | |
by ZydecoSue (Scribe) on Jan 30, 2001 at 02:20 UTC | |
by gryng (Hermit) on Jan 30, 2001 at 02:30 UTC |