| Subject: | Re:Break and resume loop - howto? |
|---|---|
| From: | pangj@xxxxxxxxxxx (Jeff Pang) |
| Date: | Sun, 31 Aug 2008 14:21:58 +0200 (CEST) |
| Newsgroups: | perl.beginners |
You may try something like:
while(<>) {
chomp;
if ($_ eq "b") {
last;
} elsif ($_ eq "q") {
exit;
} elsif ($_ eq "c") {
next;
}
}
I thought that this is a homework question,:)
Créez votre adresse électronique prenom.nom@xxxxxxxxxxx
1 Go d'espace de stockage, anti-spam et anti-virus intégrés.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: how to pass HTTP::Response variable to sub, Rob Dixon |
|---|---|
| Next by Date: | Re: Swithing from C, C++, Raymond Wan |
| Previous by Thread: | Re: Break and resume loop - howto?, Rob Dixon |
| Next by Thread: | String is Missing Backslash, AndrewMcHorney |
| Indexes: | [Date] [Thread] [Top] [All Lists] |