[ create a new paste ] login | about

Link: http://codepad.org/lhSs5Jhq    [ raw code | output | fork ]

Perl, pasted on Aug 20:
1
2
3
4
5
6
7
8
use strict;
use warnings;

my $x = 'Hello World';
$x =~ s/World/Web/;
$y = "I want to say '$x' but \$y not localised";

print "$y\n";


Output:
1
2
3
Global symbol "$y" requires explicit package name at line 6.
Global symbol "$y" requires explicit package name at line 8.
Execution aborted due to compilation errors.


Create a new paste based on this one


Comments: