Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Doing "it" only once

by Limbic~Region (Chancellor)
on Sep 21, 2005 at 15:08 UTC ( [id://493826]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while ( <FH> ) {
        next if $_ eq 'foo'; # Where foo can only appear once in the file
        print;
    }
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
            $block->();
        }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://493826]
Approved by Corion
Front-paged by TStanley
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found