You have to forgive me. I havent got around to actually testing this until just now. Now the problem seems to be me not being able to actually associate the dropped file with a filehandle.
I tried the following code :
$frame->DragAcceptFiles(1); EVT_DROP_FILES( $frame, \&doit ); sub doit { #warn "@_\n" open ( our $file, '<', @_ ) or die "$!"; \&otherSub($file); }
And ofcourse it didnt work and has sent me into a downwards spiral of searching in google and trying everything i could find lol, but i still couldnt find an example that made me have that "ah-ha" moment.
I use the our statement so the dropped file will be available throught the script. would this be the correct concept? I understand the way i am trying to associate the dropped file with the filehandle isnt correct and any insight will be very much appreciated :)

In reply to Re^2: WxPerl and drag and dropping files by james28909
in thread WxPerl and drag and dropping files by james28909

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.