use strict $message = “Hello World”; print “$messagen”; exit; On running, Perl returns: HelloWorld. Surprise! The typo prevents strictness from becoming enabled. The absence of the mykeyword allows the assignment to succeed. (Since it’s global, the fact that the assignment happens in an invisible BEGINblock doesn’t matter.) This is one of the most insidious errors conceivable: a single character mistake that causes no warning and no error yet prevents the very error checking the programmer was trying to enable. 8.1.2 A Puzzle Here’s another example of deletion. Can you figure out what’s wrong? use strict; sub foo { my $sref = shift; foreach my $d (@) { find ($sref, $d); } } sub find { } The result: Global symbol “$d” requires explicit package name at typo.pl line 6. syntax error at typo.pl line 7, near “}” syntax error at typo.pl line 8, near “}” Execution of typo.pl aborted due to compilation errors. foreach my $d (@)should instead be foreach my $d (@_). Well, @) is a valid variable in Perl a strange variable to be sure, and not the kind of thing you want to be using intentionally but a variable nevertheless. This robbed the foreach list of its closing parenthesis and caused a wonderful cascade of nonsense. 8.1.3 Insertion Insertion typos probably occur as often as deletion typos, though with different pathologies. An additional character in a variable name is flagged by Perl (if you used -w),and a misspelled command generates a run-time exception. An insertion typo becomes dangerous when the typo is still a valid Perl statement but executes an unexpected function.
Note: If you are looking for good and high quality web space to host and run your java application check Vision java hosting services