Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Tcl::pTk Can't locate object method "findINC" via package "Tk"

by Anonymous Monk
on Jun 16, 2018 at 03:44 UTC ( [id://1216770]=note: print w/replies, xml ) Need Help??


in reply to Tcl::pTk Can't locate object method "findINC" via package "Tk"

In the Tcl::pTk module there is the following subroutine

# subroutine findINC copied from perlTk/Tk.pm sub findINC { my $file = join('/',@_); # Normal location my $fileImage = join('/', $_[0], 'images', $_[1]); # alternate loc +ation in the 'images' directory my $dir; $file =~ s,::,/,g; $fileImage =~ s,::,/,g; foreach $dir (@INC) { my $path; # check for normal location and 'images' location of the file return $path if (-e ($path = "$dir/$file") ); return $path if (-e ($path = "$dir/$fileImage") ); } return undef; }

So not weite sure about the object Tk->findINC

  • Comment on Re: Tcl::pTk Can't locate object method "findINC" via package "Tk"
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1216770]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-19 15:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found