Just for the curious, and those google searchers out there, I got things worked out.

(trusty)westmj@localhost:~/GoogleDrive/perl$ cat hello_world.pl #! /usr/bin/perl print "Hello, World!\n\@ARGV:\n"; foreach $arg (@ARGV) { print "$arg\n"; } warn "Press 'Enter' or 'Return' to finish.\n"; <STDIN> (trusty)westmj@localhost:~/GoogleDrive/perl$ perl hello_world.pl 1 2 Hello, World! @ARGV: 1 2 Press 'Enter' or 'Return' to finish. (trusty)westmj@localhost:~/GoogleDrive/perl$ cat hello_world_desktop.d +esktop [Desktop Entry] Version=1.0 Name=Hello_World_desktop Comment=Execute by dropping file onto Exec=/usr/bin/perl /home/westmj/GoogleDrive/perl/hello_world.pl '%F' #Icon=/home/alex/Pictures/icon.png Terminal=true Type=Application #Categories=Application MimeType=application/vnd.ms-excel;application/vnd.openxmlformats-offic +edocument.spreadsheetml.sheet;inode/directory;text/plain;text/x-scrip +t.perl;

Dragging two perl files onto the .desktop file works, the output in a new terminal is:

Hello, World! @ARGV: /home/westmj/GoogleDrive/perl/modify.pl /home/westmj/GoogleDrive/perl/Open_with_NotePad-attenders.pl Press 'Enter' or 'Return' to finish.

In reply to Re: Ubuntu: drag files/folders onto perl script and get their names in @ARGV by westmj
in thread Ubuntu: drag files/folders onto perl script and get their names in @ARGV by westmj

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.