Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Open txt file using default program on Windows

by Jim (Curate)
on Jun 01, 2013 at 22:52 UTC ( #1036515=note: print w/replies, xml ) Need Help??


in reply to Re^2: Open txt file using default program on Windows
in thread Open txt file using default program on Windows

What's in perlbug about invoking Notepad with Perl?

  • Comment on Re^3: Open txt file using default program on Windows

Replies are listed 'Best First'.
Re^4: Open txt file using default program on Windows
by BrowserUk (Pope) on Jun 01, 2013 at 23:04 UTC

    C:\test>perlbug ... You will probably want to use a text editor to enter the body of your report. If "notepad" is the editor you want to use, then just press Enter, otherwise type in the name of the editor you would like to use. If you have already composed the body of your report, you may enter "file", and c:\perl64\bin/perlbug.bat will prompt you to enter the name of the file containing your report. Editor [notepad]:

    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

      Oh. I was looking for a reference to Notepad in perldoc perlbug, and there isn't one.

        Jim, you misunderstood BUK's intention and I would have too.

        That's OK, it's nobodies fault, just a misunderstanding.

        Now, please don't fall into the trap of quarreling 10s of levels deep.

        You're only wasting time and energy.

        Just ignore this subthread, like I do and enjoy your live! =)

        Cheers Rolf

        (addicted to the Perl Programming Language)

        PS: Plz take it as a compliment that I'm asking you to be the smart one who stops it...

        See line 260


        With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1036515]
help
Chatterbox?
[Lady_Aleena]: Good morning Corion, I hope you have a wonderful day as well. 8)
[Corion]: Yesterday I encountered an interesting data structure problem. I have a remote program that emits events, and my client listens for these events with one-shot callbacks, that is, I register the callback and if the event gets generated that callback ...
[Lady_Aleena]: robby_dobby, every day. Chaos is my life with few controls.
[Corion]: ... gets called once. The data structure for that is just a hash of arrays, mapping the event type to a queue of registered one-shots, and the first one-shot from the queue gets removed and called.
[Corion]: But now I want to register a one-shot for two events, of which only one will arrive, so my data structure doesn't work anymore...
[Lady_Aleena]: Corion, ouchy.
[Corion]: (maybe I should write this up as a SoPW) - currently, the "most efficient" data structure I come up with is a single array which I scan for the first fitting one-shot. Not efficient but I don't expect more than five outstanding one-shots anyway
[choroba]: can't you create a meta-key corresponding to the disjunction of the events?
[robby_dobby]: Corion: Heh. This whole thing smells of Strategy Pattern or MVC pattern.
[Corion]: And performance linear to the number of registered one-shots doesn't feel that bad. Maybe I should collect statistics on how many callbacks are outstanding ;)

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2017-05-29 07:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?