Ahh I’ve been screwing up the whole time. Which way should I try executing this command, with or without doing chmod 777? I also copy and pasted the lines noted.
Line 29 looks like this:
my $start_topic = 1;
Line 101 looks like this:
my @topic_list = scalar(@get_topics) ? @get_topics : ($start_topic .. $end_topic );
Line 90:
my %seen_users = map {$_->[0] => 1} @{ $dbh->selectall_arrayref("SELECT username FROM users") };
Line 267:
my $dbh = DBI->connect("dbi:SQLite:dbname=$db_file","","");
Code:
SA@SA-HP:~$ perl /home/SA/Desktop/taparip.pl
syntax error at /home/SA/Desktop/taparip.pl line 29, near "my "
Global symbol "$start_topic" requires explicit package name (did you forget to declare "my $start_topic"?) at /home/SA/Desktop/taparip.pl line 29.
Global symbol "$start_topic" requires explicit package name (did you forget to declare "my $start_topic"?) at /home/SA/Desktop/taparip.pl line 101.
Execution of /home/SA/Desktop/taparip.pl aborted due to compilation errors.
Line 29 looks like this:
my $start_topic = 1;
Line 101 looks like this:
my @topic_list = scalar(@get_topics) ? @get_topics : ($start_topic .. $end_topic );
Code:
SA@SA-HP:~$ chmod 777 /home/SA/Downloads/taparip-master/taparip.pl
SA@SA-HP:~$ perl /home/SA/Downloads/taparip-master/taparip.pl
Gathering data from https://https://www.tapatalk.com/groups/group//viewtopic.php
DBI connect('dbname=/home/SA/Downloads/ForumRip','',...) failed: unable to open database file at /home/SA/Downloads/taparip-master/taparip.pl line 267.
Can't call method "selectall_arrayref" on an undefined value at /home/SA/Downloads/taparip-master/taparip.pl line 90.
SA@SA-HP:~$
Line 90:
my %seen_users = map {$_->[0] => 1} @{ $dbh->selectall_arrayref("SELECT username FROM users") };
Line 267:
my $dbh = DBI->connect("dbi:SQLite:dbname=$db_file","","");