Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Calling perl from zsh w/ vars

by AnomalousMonk (Archbishop)
on Jul 18, 2020 at 15:15 UTC ( [id://11119497]=note: print w/replies, xml ) Need Help??


in reply to Calling perl from zsh w/ vars

I'd prefer Marshall's approach of using a grep-like utility if you have one, but if not:

c:\@Work\Perl\monks>grep -c "xms;$" elide_lines.pl.bak 2 c:\@Work\Perl\monks>perl -ne "BEGIN { $AP = shift } $n++ if /$AP/; END + { print $n }" "xms;$" elide_lines.pl.bak 2


Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11119497]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-19 02:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found