K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / usr / share / perl5 / Debconf / Element / Editor /
server ip : 172.67.156.115

your ip : 172.70.130.16

H O M E


Filename/usr/share/perl5/Debconf/Element/Editor/Select.pm
Size834
Permissionrw-r--r--
Ownerroot : root
Create time27-Apr-2025 09:50
Last modified23-Feb-2014 22:30
Last accessed06-Jul-2025 11:53
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#!/usr/bin/perl -w
# This file was preprocessed, do not edit!


package Debconf::Element::Editor::Select;
use strict;
use Debconf::Gettext;
use base qw(Debconf::Element::Select);


sub show {
my $this=shift;

my $default=$this->translate_default;
my @choices=$this->question->choices_split;

$this->frontend->comment($this->question->extended_description."\n\n".
"(".gettext("Choices").": ".join(", ", @choices).")\n".
$this->question->description."\n");
$this->frontend->item($this->question->name, $default);
}


sub value {
my $this=shift;

return $this->SUPER::value() unless @_;
my $value=shift;

my %valid=map { $_ => 1 } $this->question->choices_split;

if ($valid{$value}) {
return $this->SUPER::value($this->translate_to_C($value));
}
else {
return $this->SUPER::value($this->question->value);
}
}


1