Phoenix.pm: Perl stuuf

Shay Harding sharding at ccbill.com
Fri Mar 5 08:43:29 CST 1999


On Thu, 04 Mar 1999, you wrote:
>Shay Harding wrote:
>
>> >Shay Harding wrote:
>> >
>> >> On Tue, 02 Mar 1999, you wrote:
>> >> >Hey, look! An actual Perl-related email!
>> >> >
>> >> >So, I have this little update pl fed by an HTML form. One of the things it
>> >> >does is to store a copy of the updated content seperate so that it can be
>> >> >edited later. So, here is where it gets wierd...
>> >> >
>> >> >$text = $FORM{'text'};
>> >> >$action = $FORM{'action'};
>> >> >$action = "nada" unless $action;
>> >>      ### $action = "nada" if !$action; ### :)
>> >
>> >or even less typing...
>> >$action |= "nada";
>>
>
>You got me... should be $action ||= "nada";

Ahh, I see now. I was really confused on that one. Just a typo then :)


--

Shay Harding
sharding at ccbill.com



More information about the Phoenix-pm mailing list