Re: MCPAN

2001-07-18 Thread Will Cottay
I changed line 1860 in 5.6.0/CPAN.pm to read: my $ftp = Net::FTP->new($host, Passive=>1); which works here, but I didn't spend much time looking to see if anyone had done it properly. -will Terry Poperszky wrote: > > Question? How do I set MCPAN to use passive FTP connection? > > Terry --

Re: looking at rows in text files

2001-07-18 Thread Will Cottay
If your file really looks like that and you're really only trying to print the first column just: cut -d' ' -f1 < your.file from the command prompt. or if you want the dns server name instead: tr -s '[:blank:]' '\t' < cu.txt | cut -f2 -will Tyler Longren wrote: > > Hello everyone, > > I h

Re: if then and perl

2001-07-18 Thread Will Cottay
Or, at the risk of beating a dead horse: #!/usr/bin/perl -w use strict; my $url = shift || ''; $url =~ /^(.*?):/; my $protocol = lc($1); my %handlers = ( 'http' => \&http_handler, 'ftp' => \&ftp_handler, 'https' => \&http_handler, 'ftps'

Re: while ... continue loops

2001-07-17 Thread Will Cottay
As I recall, the Camel book says something like "the continue block is not used often in practice" or something like that. I've not used it either, but you'd use it if you had code in the loop that interrupts the loop with a next. The code after the continue gets executed before the condition i