@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb012 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
Current Path :
/
usr
/
local
/
lib
/
perl5
/
5.8.7
/
Attribute
/
Handlers
/
demo
/
Path :
Upload File :
New :
File
Dir
//usr/local/lib/perl5/5.8.7/Attribute/Handlers/demo/demo_range.pl
package UNIVERSAL; use Attribute::Handlers; use Tie::RangeHash; sub Ranged : ATTR(HASH) { my ($package, $symbol, $referent, $attr, $data) = @_; tie %$referent, 'Tie::RangeHash'; } package main; my %next : Ranged; $next{'cat,dog'} = "animal"; $next{'fish,fowl'} = "meal"; $next{'heaven,hell'} = "reward"; while (<>) { chomp; print $next{$_}||"???", "\n"; }