[ create a new paste ] login | about

Link: http://codepad.org/sisxqo54    [ raw code | output | fork ]

skeletonkey - Perl, pasted on Oct 7:
1
2
3
4
5
6
7
8
my @x = qw(a b c start end);
print "Values in my 'set':\n";
print "$_\n" for @x;

my $e = 'start';
@x = grep $e ne $_, @x;
print "\nValues after removing '$e':\n";
print "$_\n" for @x;


Output:
1
2
3
4
5
6
7
8
9
10
11
12
Values in my 'set':
a
b
c
start
end

Values after removing 'start':
a
b
c
end


Create a new paste based on this one


Comments: