The code shows all DATA. However, if I put use Switch; after shebang, the code doesn't run printf at all. It seems the core module Switch has an effect on DATA processing. I could not find anything in the documents.. Do you recommend me to use given()/when() instead of Switch? Regards.#!/usr/bin/perl -w while (<DATA>) { $str = $_; chomp $str; print "str=$str\n"; } __DATA__ e-2 ddfgdgdf e-3 e-4 dfgrty5r6y56 e-5 e-6 e-8
In reply to effect of Switch module on DATA by utku
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |