Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: (FASTER) Example of TMTOWTDI

by gmax (Abbot)
on Mar 22, 2002 at 10:01 UTC ( #153525=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    $ wc words.english
     116246  116246  989075 words.english
    0.86     user
    0.02     system
    0:00.88 elapsed
  2. or download this
    push @{$Word{length$_}},$_ while (<>);
    # ...
    print OUT @{$Word{$_}};
  3. or download this
    $Word{length$_} .= $_ while (<>);
    # ...
    print OUT $Word{$_};
  4. or download this
    #!/usr/bin/perl -w
    use strict;
     print OUT $words[$_];
     close OUT;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://153525]
[Corion]: Option a) would mean launching cmd.exe /k c:\path\to\ batchfile- launching-perl- script.cmd. Option b) would be to add pause as the last line of said batch file.
[LanX]: First day after holidays ... and already stressed by the fact that colleagues changed stuff without communication ... apparently I'm the only one trying to fight entropy
[Corion]: LanX: The command is always in the history if you typed it in before. If you didn't type the command into the command line, it will not be there. I think there is doskey which can stuff command lines into the history
LanX damns the cult of CB ;-)
[LanX]: please forget my last 3 posts
[LanX]: Yeah option a doesn't go into history
[LanX]: probably I need to teach the app to restart after C-c Kill
[Corion]: LanX: Maybe have an infinite-loop cmd file? Much easier than trying to manage that from within Perl IMO
[Corion]: Alternatively, relaunch the application from cron (or a Windows cron) every minute

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (12)
As of 2017-03-27 15:50 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (320 votes). Check out past polls.