CGI/Perl Guide
|
Learning Center
|
Forums
|
Advertise
|
Login
Site Search:
in
Perl Guide
PerlGuru Forums
Learning Ctr
MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN
Home
:
Perl Programming Help
:
Beginner
:
About a code snippet
Print Thread
trewq
New User
Aug 5, 2009, 3:43 AM
Post #1 of 2 (308 views)
About a code snippet
Can't Post
Hello,
while (<input>) {
m/^\n/ and next;
...
}
1) What does "m/^\n/" mean?
2) What is "and next;" for? What does it mean?
Thanks.
KevinR
Veteran
Aug 5, 2009, 8:41 AM
Post #2 of 2 (302 views)
Re: [trewq] About a code snippet
[
In reply to
]
Can't Post
m/^\n/ is checking for a line that starts with a newline and if it does it goes to the next line in the file. Its probably skipping blank lines but not necessarily.
-------------------------------------------------
Announcements
PerlGuru Announcements
Perl Programming Help
Frequently Asked Questions
Beginner
Intermediate
Advanced
Regular Expressions
mod_perl
DBI
Win32 Programming Help
Fun With Perl
Perl Quizzes - Learn Perl the Fun Way
Perl Golf
Perl Poetry
Need a Custom or Prewritten Perl Program?
I need a program that...
I Need a Programmer for Freelance Work
Throw Down The Gauntlet
General Discussions
General Questions
Feedback
Tutorial/Article Suggestions for The Learning Cent
Internet Security
Other Programming Languages
Javascript
PHP
Search
this forum
this category
all forums
for
All words
Any words
Whole Phrase
(
options
)
Powered by
Gossamer Forum v.1.2.0
Web Applications
&
Managed Hosting
Powered by Gossamer Threads
Visit our
Mailing List Archives