Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: dynamic zcat and grep

by graff (Chancellor)
on Mar 29, 2006 at 03:43 UTC ( #539861=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $debug = 0;
    my $usage = "Usage: $0 [-d|-h] month start end\n blah blah";
    ...
        $debug++;
    }
    die $usage unless ( @ARGV == 3 ); # could add more conditions...
    
  2. or download this
    my @greps = qw(\string\1
                   \string\1\extra
                   \string\2
                   %and.so.on%
                   );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://539861]
help
Chatterbox?
[1nickt]: thezip use Path::Tiny. @paths = path("/foo")-> children; (Excludes "." and ".." automatically.)
[1nickt]: (Also takes a compiled regexp as an arg to filter the list)
[1nickt]: For multiple dirs use iterator(): $it = path("/foo")-> iterator; while ( my $path = $it->() ) {...}

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



    Results (339 votes). Check out past polls.