Community Page
- dmiessler.com/ Jump to website »
-
Subscribe -
Community
-
Top Commenters
-
Popular Threads
-
Recent Comments
- I think this is a very helpful link. It fixes all the keyboard mapping problems. Even for VMware server 2.0 http://communities.vmware.com/message/1091425
- Test.
- "Yes, it helps people through altered perception of the world, but so do three glasses of wine." ___ Oh, so atheists do not drink alcohol because it is too much like religion?...
- burden is on those who make the assertion, not on those who deny
- • Theism is not a religion. Atheism is not a religion for the same reason. 'Theism' is an abstract noun which refers collectively to each organized religion which espouses the existence of...
2 years ago
(08:38:11) : Can't locate object method "new" via package "Benchmark" (perhaps you forgot to load "Benchmark"?) at /var/www/basic/lib/WPLib.pm line 304.
I get that when trying to run the following:
#!usr/bin/perl
use strict;
my $x;
my $count;
my @y;
my $y;
sub foo{
$count ;
if($count'2'){@y[$count] = @y[($count-1)] @y[($count-2)];}
if($count;
if($x=~m/[0-9] / && $x0){foo();}
elsif($x>20||$x
I have tried to remove the strict module and all of my "my" statements, but nothing seems to work. Still, this seems to be a new project and I am sure that as time passes, more and more support will be available and more and more language functionality will be supported. I am pretty excited to see what this project will develop into. Thanks for the heads up!
2 years ago
#!usr/bin/perl
use strict;
my $x;
my $count;
my @y;
my $y;
sub foo{
$count ;
if($count<=$x){
if($count=='1'){@y[$count]='0';}
if($count=='2'){@y[$count]='1';}
if($count>'2'){@y[$count] = @y[($count-1)] @y[($count-2)];}
if($count<$x){foo();}
elsif($count==$x){
foreach $y(@y){print $y." ";}
print "\n\n";
@y=();
main();
}
}
}
sub main{
$count=0;
print "Please enter a number [1..18] to continue\n:";
$x = <>
if($x=~m/[0-9] / && $x<=20 && $x>0){foo();}
elsif($x>20||$x<0){main();}
else{exit 0;}
}
main();
2 years ago
You've got an extra curly bracket ('}') at the end of the function definition for foo().
Also, the line below doesn't seem right. first, I think you need to use dollar signs instead of at symbols. Second, I think there's supposed to be an operation of some sort between "$y[($count-1)]" and "$y[($count-2)]".
if($count>’2′){@y[$count] = @y[($count-1)] @y[($count-2)];}
2 years ago
2 years ago
I wrote it out and corrected it myself.
2 years ago
check out www.createworkspace.com they are building something similar..