Hi ! I'm learning perl (in a book) and I have some points that I don't understand.
- what is the differance btw
$Myvar = 'X';
and
my $Myvar = 'X';
or
Local $Myvar = 'X';
(What exactly does the my and local keyword ?)
I've tryed to write a little program. Can you please tell me why this program do not work when I call it from my browser? (I have chmod it 755 on my net server)
#!/usr/bin/perl -w
#The first script of my life !
my $Marie = 'Québec';
my $Maren = 'Germany';
# this is what I want to be print on screen
$Pays = "Marie live in $Marie and Maren live in $Maren\n";
print "$pays";
Thanks a lot for your help !
- what is the differance btw
$Myvar = 'X';
and
my $Myvar = 'X';
or
Local $Myvar = 'X';
(What exactly does the my and local keyword ?)
I've tryed to write a little program. Can you please tell me why this program do not work when I call it from my browser? (I have chmod it 755 on my net server)
#!/usr/bin/perl -w
#The first script of my life !
my $Marie = 'Québec';
my $Maren = 'Germany';
# this is what I want to be print on screen
$Pays = "Marie live in $Marie and Maren live in $Maren\n";
print "$pays";
Thanks a lot for your help !