Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Exiting subroutine via next (that old chestnut)

by why_bird (Pilgrim)
on Mar 04, 2008 at 17:23 UTC ( [id://671946]=note: print w/replies, xml ) Need Help??


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

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
.......
  • Comment on Re^2: Exiting subroutine via next (that old chestnut)

Replies are listed 'Best First'.
Re^3: Exiting subroutine via next (that old chestnut)
by runrig (Abbot) on Mar 04, 2008 at 17:31 UTC
    '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://671946]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (7)
As of 2024-04-23 12:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found