I'm trying perl for the first time and I just can't seem to get loops to work, I've copied a loop from O'Reilly's "Learning Perl" that doesn't work for me. I'm running active perl on a windows xp system...
#!usr/bin/perl
#right out of O'Reilly's "Learning Perl"
my $some_other = "I dream of betty rubble.";
if ($some_other =~ /\brub/) {
print "Aye, there's the rub.\n;
}
<STDIN>; #so that the window stays open
#!usr/bin/perl
#right out of O'Reilly's "Learning Perl"
my $some_other = "I dream of betty rubble.";
if ($some_other =~ /\brub/) {
print "Aye, there's the rub.\n;
}
<STDIN>; #so that the window stays open