aboutsummaryrefslogtreecommitdiff
path: root/Perl/Zinc
diff options
context:
space:
mode:
authormertz2004-04-21 11:17:20 +0000
committermertz2004-04-21 11:17:20 +0000
commitcfa6772453ed9c673d0d11be4f914f8406950685 (patch)
tree635c30bb19873e28debb866077d1da8422486686 /Perl/Zinc
parent1bfeb51dc7c92a6a80f8b4f39c7dea87ab513757 (diff)
downloadtkzinc-cfa6772453ed9c673d0d11be4f914f8406950685.zip
tkzinc-cfa6772453ed9c673d0d11be4f914f8406950685.tar.gz
tkzinc-cfa6772453ed9c673d0d11be4f914f8406950685.tar.bz2
tkzinc-cfa6772453ed9c673d0d11be4f914f8406950685.tar.xz
removing a redefined of the Item function in the same file!
Diffstat (limited to 'Perl/Zinc')
-rw-r--r--Perl/Zinc/TraceUtils.pm33
1 files changed, 0 insertions, 33 deletions
diff --git a/Perl/Zinc/TraceUtils.pm b/Perl/Zinc/TraceUtils.pm
index 5a9536f..d0c5c04 100644
--- a/Perl/Zinc/TraceUtils.pm
+++ b/Perl/Zinc/TraceUtils.pm
@@ -23,39 +23,6 @@ sub printList {
print &List (@_);
}
-sub Item {
- my ($value) = @_;
- my $ref = ref($value);
-# print "VALUE=$value REF=$ref\n";
- if ($ref eq 'ARRAY') {
- return Array ( @{$value} );
- } elsif ($ref eq 'CODE') {
- return "{CODE}";
- } elsif ($ref eq 'Tk::Photo') {
-# print " **** $value ***** ";
- return "Tk::Photo(\"". scalar $value->cget('-file') . "\")";
- } elsif ($ref eq 'Tk::Font') {
- return "'$value'";
- } elsif ($ref eq '') { # scalar
- print "value: $value\n";
- if (defined $value) {
- print "defined value: $value\n";
- { no strict;
- if ($value eq eval ($value)) {
- return $value;
- } else {
- return "'$value'";
- }
- use strict;
- }
- } else {
- return "_undef";
- }
- } else { # some class instance
- return $value;
- }
-
-} # end Item
### to print something
sub Item {