Oct 11, 2017, 2:34 PM
Post #1 of 4
Hello there everyone, I hope somone can clarify this little problem I have :)
General Strawberry questions
Well, I am on Windows 10, and so I have now Strawberry installed, and strucked to 2 problems I would like to have answered, if you please..
1 ) How does the CPAN module works? I wanted to use the getOpt for command line parameters, so tried to run the "CPAN Client", I clicked on it, a breaksecond of a command window apperad, and then nothing.
2) how do you debug? Maybe it seems strange that I never debuged before, I always used strict and warnings, that was enough. But now I intentionaly invoked a code, which doesn't work:
my $x = <>;
my $y = fak($x);
print "$x $y \n";
my $p = shift;
return ($p * fak($p - 1));
How do I prompt a debug? I tried "-d" in the Strawberry command line, but with no prevail. I hope somebody have some insight concerning this. Thanks in advance!