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.17

H O M E


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


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


sub show {
my $this=shift;

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

$this->frontend->comment($this->question->extended_description."\n\n".
"(".gettext("Choices").": ".join(", ", @choices).")\n".
gettext("(Enter zero or more items separated by a comma followed by a space (', ').)")."\n".
$this->question->description."\n");

$this->frontend->item($this->question->name, join ", ", $this->translate_default);
}


sub value {
my $this=shift;

return $this->SUPER::value() unless @_;
my @values=split(',\s+', shift);

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

$this->SUPER::value(join(', ', $this->order_values(
map { $this->translate_to_C($_) }
grep { $valid{$_} } @values)));
}


1