pythondude has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
I'm looking into mking this code shorter if posible.
while(<STDIN>){print if m/$ARGV[0]/;}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl grep clone
by choroba (Cardinal) on Apr 01, 2016 at 21:45 UTC | |
by pythondude (Initiate) on Apr 01, 2016 at 21:52 UTC | |
|
Re: perl grep clone
by RonW (Parson) on Apr 01, 2016 at 23:01 UTC | |
by pythondude (Initiate) on Apr 02, 2016 at 00:05 UTC | |
|
Re: perl grep clone (CLI & perlrun)
by LanX (Saint) on Apr 02, 2016 at 12:07 UTC | |
|
Re: perl grep clone
by BrowserUk (Patriarch) on Apr 01, 2016 at 22:11 UTC | |
by pythondude (Initiate) on Apr 01, 2016 at 22:20 UTC | |
by morgon (Priest) on Apr 01, 2016 at 23:08 UTC | |
|
Re: perl grep clone
by stevieb (Canon) on Apr 02, 2016 at 01:34 UTC |