Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^4: Does problem is in the for loop???

by afoken (Canon)
on May 11, 2015 at 10:21 UTC ( #1126293=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    >perl -E "open IN,'<','/etc/group'; open OUT,'>','/tmp/foo'; while (<I
    +N>) { print OUT if /adm/; } close OUT; close IN;"
    >cat /tmp/foo
    sys:x:3:root,bin,adm
    adm:x:4:root,adm,daemon
    disk:x:6:root,adm
    >
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2021-01-26 07:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?