Re: Cool construct

2004-07-07 Thread Bryan Harris
> On Tuesday 06 July 2004 23:49, Bryan Harris wrote: >> >> I found this construct in the Perl Cookbook: >> >> $Current_Screen = param(".State") || "Default"; >> >> I thought it was really cool because if the value of param(".State") >> comes back undefined, the $Current_Screen variable gets set

Re: Cool construct

2004-07-07 Thread John W . Krahn
On Tuesday 06 July 2004 23:49, Bryan Harris wrote: > > I found this construct in the Perl Cookbook: > > $Current_Screen = param(".State") || "Default"; > > I thought it was really cool because if the value of param(".State") > comes back undefined, the $Current_Screen variable gets set to > "Defaul

Cool construct

2004-07-07 Thread Bryan Harris
I found this construct in the Perl Cookbook: $Current_Screen = param(".State") || "Default"; I thought it was really cool because if the value of param(".State") comes back undefined, the $Current_Screen variable gets set to "Default". So the other day I wanted to do something similar: @somea

Re: Cool construct

2004-07-07 Thread Gunnar Hjalmarsson
Bryan Harris wrote: I found this construct in the Perl Cookbook: $Current_Screen = param(".State") || "Default"; I thought it was really cool because if the value of param(".State") comes back undefined, the $Current_Screen variable gets set to "Default". So the other day I wanted to do something s

Cool construct

2004-07-06 Thread Bryan Harris
I found this construct in the Perl Cookbook: $Current_Screen = param(".State") || "Default"; I thought it was really cool because if the value of param(".State") comes back undefined, the $Current_Screen variable gets set to "Default". So the other day I wanted to do something similar: @somea