root/dan/perl/PL_check/trunk/test.pl
@
14411
| Revision 14411, 399 bytes (checked in by yappo, 5 years ago) |
|---|
| Line | |
|---|---|
| 1 | package My; |
| 2 | |
| 3 | sub new { |
| 4 | bless {}, shift; |
| 5 | } |
| 6 | |
| 7 | package main; |
| 8 | use strict; |
| 9 | use warnings; |
| 10 | use lib qw(blib/lib blib/arch); |
| 11 | |
| 12 | use PL_check::hack; |
| 13 | |
| 14 | BEGIN { |
| 15 | PL_check::hack::setup; |
| 16 | } |
| 17 | |
| 18 | |
| 19 | #exit; |
| 20 | warn "running"; |
| 21 | |
| 22 | so; |
| 23 | BEGIN { warn "My->new" } |
| 24 | my $obj = My->new; |
| 25 | #$obj->hoge; |
| 26 | |
| 27 | while (1) { |
| 28 | last; |
| 29 | } |
| 30 | |
| 31 | for (1..2) { |
| 32 | warn "for loop in"; |
| 33 | next; |
| 34 | warn "for after next"; |
| 35 | } |
| 36 | warn "for end"; |
| 37 | |
| 38 | for (1..2) { |
| 39 | } |
Note: See TracBrowser
for help on using the browser.
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)