Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Sequential defined-or operators

by naikonta (Curate)
on Jan 14, 2008 at 06:01 UTC ( #662262=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    my $default = 0;
    my $input_number = $ARGV[0];
    my $number = defined $input_number ? $input_number : $default;
  2. or download this
    my $number = $input_number // $default;
  3. or download this
    my $default_theme = get_default_theme();
    my $global_config = read_config('/path/to/config_file');
                        $default_theme                                :
  4. or download this
    my $theme = $global_config->{modes}{$current_mode}{theme} //
                $theme_config->{current_theme} //
                $default_theme //
  5. or download this
    my $theme = (

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://662262]
Approved by ikegami
Front-paged by McDarren
choroba still has one more.
[Corion]: I have Thursday and Friday off, so then I might get to converting the rough outlines to more articles ;)
[Corion]: But currently, most of the modules are web-related and I don't like to publish two web articles in a row
[Corion]: Maybe I should do the Filter::Simple release on the next weeked - this would give me one more article to milk from this theme

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2017-04-24 08:57 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (437 votes). Check out past polls.