jump to navigation

Perl Parameter Passing…a ‘1′? December 11 2003

Whats wrong with the following?

#!/usr/local/bin/perl
use strict;
&main();
sub main { test_file(’/etc/passwd’); }
sub test_file {
my $file = @_;
print qq{test_file : $file\n};
}

Why won’t it print ‘/etc/passwd’ ???

(ANSWER: $file must have parens around it)

Can’t find Perl Module … but its there DAMNIT!

Ever have a Perl module installed under a site-perl directory, yet the web server REFUSES to see it? You check it over and over…but its there!

Can’t locate HTTP/Date.pm in @INC (@INC contains: /oanda/local/lib/perl /oanda/system/perl-5.8.2/lib/5.8.2/i686-linux
/oanda/system/perl-5.8.2/lib/5.8.2 /oanda/system/perl-5.8.2 .. blah blah blah

Here is a hint….make sure the directories are readable and executable to all users.

#>chmod -R 755 /usr/local/lib/perl5

Ahh..much better :)

SSH Tunnelling problems December 10 2003

Found a problem with my hmoe Linux install today. Tried to SSH tunnel into my work computer like I always do, but kept getting an error:

bind: Cannot assign requested address
channel_request_forwarding: cannot listen to port: 81
Could not request local forwarding.

After digging around some Google pages, I came to the conclusion that there was something wrong with my local loopback.

#>/sbin/ifconfig

revealed that there was no localloop back at all….so I tried to start it

#>/sbin/ifconfig lo up

All looked well …

lo Link encap:Local Loopback
UP LOOPBACK RUNNING …

Welcome December 02 2003

..configured the B.log

First Post

First post y’all