in reply to Re: eval with sub
in thread eval with sub
Update: Fixed with Merlyn's code.if($l=~/^\[([^\]]+)\]/) { $j=$1; $k=$1; $j=$1, $k=$2 if($j=~/^([^\|]+)\|(.+)$/); $url[$uc]=$j; $l=$k; $op="url$uc"; $uc++; print "$op --> $j | $k\n"; $main_index_list->insert("end",$l,$op); $main_index_list->tagConfigure($op,-foreground=>"blue", -data=>$j); $main_index_list->tagBind($op,"<3>",eval "sub{do_url('$op');}"); }
--
$Stalag99{"URL"}="http://stalag99.keenspace.com";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: eval with sub
by merlyn (Sage) on Mar 10, 2001 at 02:41 UTC | |
by sierrathedog04 (Hermit) on Mar 10, 2001 at 12:41 UTC | |
by dws (Chancellor) on Mar 10, 2001 at 13:02 UTC | |
by merlyn (Sage) on Mar 10, 2001 at 16:22 UTC | |
by sierrathedog04 (Hermit) on Mar 10, 2001 at 17:23 UTC | |
by petral (Curate) on Mar 10, 2001 at 13:39 UTC |