- or download this
perl -MO=Deparse try.pl > try2.pl
perl try2.pl
- or download this
perl try.pl
- or download this
#!perl
use strict;
...
s/foo/bar/ for (my $d = 'Shakespear is the food');
print "$d\n";
- or download this
Shakespear is the bard
- or download this
use Data::Dumper;
BEGIN {${^WARNING_BITS} = "UUUUUUUUUUUU"}
...
s/foo/bar/;
}
print "$d\n";
- or download this
Name "main::d" used only once: possible typo at try2.pl line 7.
Use of uninitialized value in concatenation (.) or string at try2.pl l
+ine 7.
- or download this
(my $d = 'Shakespear is the food') =~ s/foo/bar/;
- or download this
/foo/ and $_ .= '1' for (my $d = 'Shakespear is the foo');