Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Exiting subroutine via next (that old chestnut)

by rhesa (Vicar)
on Mar 04, 2008 at 16:59 UTC ( #671931=note: print w/replies, xml ) Need Help??


in reply to Exiting subroutine via next (that old chestnut)

I'd suggest:
RemoveComments(\$temp) and next;

Replies are listed 'Best First'.
Re^2: Exiting subroutine via next (that old chestnut)
by why_bird (Pilgrim) on Mar 04, 2008 at 17:23 UTC
    What does the 'and' do? (Googling for "perl 'and'" or "perlsyn 'and'" doesn't give much usefullness :P) I would have thought that that would just throw away every line of my file..?
    ........
    Those are my principles. If you don't like them I have others.
    -- Groucho Marx
    .......
      'and' is an operator. The idea would be to return a true value from your subroutine if you want to skip that line, and a false value otherwise.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2023-09-24 20:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?