in reply to Re: Re: Re: Problem creating a function
in thread Problem creating a function
What's the big deal.
Here is an example. You are calling cleaner in some sub that is not always called in the CGI. You will get a 500 when you do and won't know about it until it happens because it is a runtime not compile time error. This script will crash 50% of the time:
cheerssub cleaner { $_[0] =~ s/foo/bar/; } if ( rand > 0.5 ) { cleaner('foo') } __DATA__ Modification of a read-only value attempted at script line 1. # someti +mes
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Problem creating a function
by IlyaM (Parson) on Dec 25, 2002 at 16:06 UTC | |
by tachyon (Chancellor) on Dec 26, 2002 at 02:20 UTC | |
by IlyaM (Parson) on Dec 26, 2002 at 10:48 UTC | |
by jdporter (Paladin) on Dec 27, 2002 at 05:05 UTC | |
|
Re: Re: Re: Re: Re: Problem creating a function
by jdporter (Paladin) on Dec 27, 2002 at 04:55 UTC |