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

Re: Analysis of Regular Expressions

by rubasov (Friar)
on Mar 26, 2010 at 03:21 UTC ( #831020=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    my @idx = split /\s+/, $stdout;
    print "$_\n" for @re[@idx];
    
  2. or download this
    my @re = (
      qw/./,
      qw/./,
      qw/.+/,
    );
    
  3. or download this
    in $stderr:
    tsort: -: input contains a loop:
    ...
    tsort: -: input contains a loop:
    tsort: 1
    tsort: 2
    
  4. or download this
    hypothesis:
                      $re1 <= $re2
    ...
    $str =~ /$re1/ and $str !~ /$re2/ -> falsifies hypothesis
    $str !~ /$re1/ and $str =~ /$re2/ -> corroborates hypothesis
    $str !~ /$re1/ and $str !~ /$re2/ -> no consequence
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://831020]
help
Chatterbox?
[thezip]: Is there an analogy for '&' (ie. run commandline process in background) for Windows commandline?
[Corion]: thezip: start "some title" path\to\that\ application, but that will open another console window
[Corion]: thezip: If you want to confuse your users, use system(1, "that\\command" );, which will make Perl launch it in the background
[Corion]: That will keep the console window open even though the user can't type into it anymore
[thezip]: So I have a script that generates a log file. After script completion, I want tohave VIM open this logfile.
[thezip]: i don't get the command line "back" until I close VIM. No what I want to happen...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (14)
As of 2017-03-27 18:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (321 votes). Check out past polls.