Re: Serious question on using Perl or not...

2004-07-26 Thread Chris Devers
t me know off-list, as this isn't relevant to the Advocacy list & I'm don't currently subscribe to the Beginners list. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: print to both STDOUT and a file?

2004-07-30 Thread Chris Devers
#x27;s source code, but I've always assumed that it too was just using dual output statements. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: getting list of all .html files in a directory and its directories

2004-07-30 Thread Chris Devers
t it in Perl -- a shell one liner like this should be fine. And of course this all breaks down if you're using Windows, in which case unless you're a fan of Cygwin you can just ignore all of this :) -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: getting list of all .html files in a directory and its directories

2004-07-30 Thread Chris Devers
grep arguments, which inverts the meaning from "all files with this pattern" to "all files NOT with this pattern". In this case, that's what you're trying to get. If you then want to remove / delete files, tack on the sed & rm commands I had in the earlier vers

Re: getting list of all .html files in a directory and its directories

2004-07-30 Thread Chris Devers
On Fri, 30 Jul 2004, Andrew Gaffney wrote: Chris Devers wrote: On Fri, 30 Jul 2004, Andrew Gaffney wrote: Then yes, I misunderstood. This version should do what you want: $ find /path/to/htdocs -type f | xargs egrep -liv '<%(perl|init)>' That still doesn't appear to do w

Re: getting list of all .html files in a directory and its directories

2004-07-30 Thread Chris Devers
-- grep -RLi '<%init>' *html -- without needing the second grep statement. And to weave the multiple pattern matching back in, you can do these: egrep -RLi '<%(init|perl)>' *html grep -RLie '<%(init|perl)>' *html Both of these should match files

RE: Trying to understand this piece of code

2004-08-02 Thread Chris Devers
print " $1\n"; } elsif ( /\(2\)/ ) { print " $1 \n" ;} else { print "$_\n";} } ...or something to that effect. Of course, it could be that more recent versions of Perl have fixed this problem and I'm not aware

Re: Browsing a site and checking/posting webmail using perl...

2004-08-04 Thread Chris Devers
try some code to do aspects of your project, and then start plugging it all together. -- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/ np: 'Mr. Lucky' by Henry Mancini from 'The Best Of Mancini' -- To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Re: Browsing a site and checking/posting webmail using perl...

2004-08-04 Thread Chris Devers
Sanjay -- please direct all replies to the list, not me directly. On Wed, 4 Aug 2004, Sanjay Arora wrote: On Wed, 2004-08-04 at 17:14, Chris Devers wrote: On Wed, 4 Aug 2004, Sanjay Arora wrote: BTW, its not SMTP mail I want, its webmail of the particular web-sites. If you have any seperate

Re: DBI Install

2004-08-04 Thread Chris Devers
cro .00x releases for a few years before people got around to making the numbers more sensible by masking over a couple of the zeroes. Hence, 5.006x is 5.6.x, and 5.8.x is 5.008x. You're more likely to see the version represented as 5.x.y these days, but some things will still present it as 5

RE: DBI Install

2004-08-04 Thread Chris Devers
es, but if you're missing the system tools needed to do any of those steps -- such as a C compiler -- then CPAN can't help. -- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/ np: 'Baby Elephant Walk' by Henry Mancini from 'The Bes

RE: DBI Install

2004-08-04 Thread Chris Devers
tions? GCC is probably a good bet if Sun doesn't make one of their own available. As someone else noted, try <http://www.sunfreeware.com> for things like this. -- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/ np: 'Experiment In Terror' by Henry

RE: DBI Install

2004-08-04 Thread Chris Devers
as always, let the list know if you hit any complications. -- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/ np: 'Fallout!' by Henry Mancini from 'The Best Of Mancini' -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Sorting HTML tables

2004-08-04 Thread Chris Devers
d | another field | some more | ++---+---++ | priority 3 | field | any data here | other things | ++---+---++ | priority 2 | field | stuff stuff | whatever | ++---

Re: Number formatting

2004-08-04 Thread Chris Devers
)/$1,/xg; <http://search.cpan.org/~nwclark/perl-5.8.5/pod/perlfaq5.pod#How_can_I_output_my_numbers_with_commas_added?> Google and PerlFaq are your friends. -- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/ np: 'Mr. Lucky' by Henry Mancini from '

RE: Sorting an array of hashes

2004-08-05 Thread Chris Devers
ention this the first time around? Can you please give a fuller description of [a] what this data structure really looks like -- a Data::Dumper dump would be good -- and [b] how you want to rearrange the contents of this structure? -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTEC

Re: File Size Calculator

2004-08-09 Thread Chris Devers
annoying -- in which case your way is better -- but if all you want is the conversions, this is a solved problem :-) -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: COMPLEX ARRAY STRUCTURE

2004-08-09 Thread Chris Devers
n', 'mail' => '[EMAIL PROTECTED]', 'objectclass' => ['top', 'person', 'organizationalPerson', 'inetOrgPerson'

Re: COMPLEX ARRAY STRUCTURE

2004-08-09 Thread Chris Devers
e at the data structure Net::LDAP is using without going through the $ldap->add() method provided, you're probably going to regret it in the long run, when -- as inevitably happens -- some random update changes how things are stored but not the API and your code that depended on the old storage mechanism falls apart with the new one. If on the other hand you just use the normal API, you should be safe. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: COMPLEX ARRAY STRUCTURE

2004-08-09 Thread Chris Devers
On Mon, 9 Aug 2004, Luis Daniel Lucio Quiroz wrote: You are wrong, I see. Good luck figuring it out then! -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: regex problem

2004-08-10 Thread Chris Devers
>new([$foo, $bar], [qw(foo *ary)]); ... print $d->Dump; ... $d->Purity(1)->Terse(1)->Deepcopy(1); eval $d->Dump; And goes on to describe usage details & more examples. Good luck with it! -- Chris Devers -- To unsu

Re: Web Application with PERL or ASP.NET

2004-08-10 Thread Chris Devers
d -- impossible. give examples of robust web applications writtern in perl , links, examples, etc. This is probably what you want: <http://perl.oreilly.com/news/success_stories.html> -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

Re: PERL and Mobile Devices.

2004-08-13 Thread Chris Devers
On Tue, 10 Aug 2004, Joe Echavarria wrote: can i write applications with perl for mobile devices , Sure, go ahead. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Perl compiled or interpreted?

2004-08-13 Thread Chris Devers
ch as Java. That said, as Jeff notes, the PAR project is trying to get this kind of functionality for Perl5, and one of the design goals for Perl6 will be the ability to work with bytecode or fully compiled machine code in ways similar to Java, Python, or even C/C++. But that's a ways off yet... :-)

Re: Here is the URL for Beginning Perl

2004-08-13 Thread Chris Devers
but it sounds to me like you're using a bad address. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Here is the URL for Beginning Perl

2004-08-13 Thread Chris Devers
On Fri, 13 Aug 2004, hcohen2 wrote: Chris Devers wrote: OK, my problem is that the attempt to connect using 127.0.0.1 gets a message something like connection refused by the server. Is there some location in the httpd.conf file to list an acceptable client? Is the web server running on your

Re: Here is the URL for Beginning Perl

2004-08-13 Thread Chris Devers
On Fri, 13 Aug 2004, hcohen2 wrote: Chris Devers wrote: Ok, that changes things. So then, this is Apache? Running on ...Linux? OSX? Windows? Other? Linux Mandrake 9.1 Ok, knowing that that makes things easier. If you're on an operating system with a command line, try this (the lines you

Re: how to encrypt my perl script

2004-08-14 Thread Chris Devers
poking around the system, but the owners of the system will almost always be able to read it. Sorry. -- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/ np: 'Don Quixote, part 2i' by Miguel de Cervantes from 'Don Quixote, part 2' -- To uns

Re: how to encrypt my perl script

2004-08-14 Thread Chris Devers
for can't reliably be done. Sorry, but it's that simple. -- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/ np: 'The Vatican Rag' by Tom Lehrer from 'That Was The Year That Was' -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: host perl script

2004-08-16 Thread Chris Devers
may not be running all the same software that you have locally, so being able to poke around in a shell on the server can be useful for debugging things. -- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/ np: 'Chapter 22a' by Mark Twain from 'The Adven

Re: date format

2004-08-16 Thread Chris Devers
month back. why is this? Because, as with many things in programming, it counts from zero, not one. -- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/&

Re: pattern extraction

2004-08-16 Thread Chris Devers
;?" could be any number Try this: my $html = qq[ http://www.microsoft.com/technet/treeview/?url=/technet/security/bulletin/MS02-045.asp"; target="_default">Microsoft Security BulletinMS02-045 ]; my $bulletin = ( $html =~ /(MS\d+-\d+)/ ); That's untested, but I think it

RE: pattern extraction

2004-08-16 Thread Chris Devers
Are you saying that this data is stored in the @row array ? If so, then the code to extract $mso from whatever scalar value holds the actual html string needs to be wrapped in code to walk the array. Maybe you should back up now and explain what @row / $row[2] is/are. -- Chris Devers [

RE: pattern extraction

2004-08-16 Thread Chris Devers
row[2] =~ (m/MS\d\d\-\d{3}/) ); I'm cargo culting here, i.e. pasting an idiom that I've never understood as clearly as I ought to; I can never keep straight when (or why) the pattern match should be wrapped in parens, but I think the latter version should definitely work. --

RE: pattern extraction

2004-08-16 Thread Chris Devers
t `perldoc perlre`, or any introductory Perl book that goes over how to use regular expressions. These are FAQs. -- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/ np: 'Four6 (John Cage)' by Sonic Youth from 'Goodbye 20th Century' -- To unsubsc

Re: date format

2004-08-16 Thread Chris Devers
know if you hit any obstacles. -- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/ np: 'Nevermind' by Red Hot Chili Peppers from 'Freaky Styley' -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: config from file

2004-08-17 Thread Chris Devers
ot;Oracle home is $Config{ORACLE_HOME}­"; print "Oracle SID is $Config{ORACLE_SID}"­; More info: <http://perlmonks.thepen.com/35967.html> <http://search.cpan.org/~wadg/Config-IniFiles-2.38/IniFiles.pm> Parsing files like this isn't terribly hard to sort out

Re: using DB_BTREE on an 8mm record file

2004-08-17 Thread Chris Devers
ewho/Benchmark-Timer-0.5/Timer.pm> Or try the older Benchmark module: <http://search.cpan.org/~nwclark/perl-5.8.5/lib/Benchmark.pm> Send us the output of your benchmarks and then we'll be able to address the question of whether or not you're getting "pretty good pe

Re: DBD::mysql bad auto/DBD/mysql/mysql.bundle file on OS X

2004-08-18 Thread Chris Devers
u should be able to do a sudo perl -MCPAN -e 'install DBD::mysql' and it should work. -- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/ np: 'Bingo Bango' by Basement Jaxx from 'Remedy' -- To unsubscribe, e-mail: [EMAIL PROTECTED

Re: cgi modules

2004-08-19 Thread Chris Devers
t, you've basically stated that you want to take a road trip and haven't yet decided between the station wagon and the SUV. Without knowing where you're going, to beat the metaphor, we can't help you. So -- where are you going? :-) -- Chris Devers [EMAIL PROTECTED] http:

Re: multiplexing Net::DNS::Nameserver

2004-08-20 Thread Chris Devers
, I'd assume people start looking for lists specific to the work they're doing once they've "graduated" from the beginners lists, e.g. web programmers might move from beginners-cgi to mod_perl, or to the list[s] related to modules they're using a lot. -- Chris Deve

Re: Mime::Lite - Windows Question

2004-08-23 Thread Chris Devers
ending your own, similarly constructed mail, where the html body is something like: $subject There's probably a bit more to it than that, but that's close. -- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/ np: 'I Believe (When I F

RE: Sed-type-function

2004-08-23 Thread Chris Devers
se send the list examples of both the Sed and the Perl code that you have tried so far. -- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/ np: 'The Twilight Zone Radio Dramas Collection' by Rod Serling et al from 'The Twilight Zone Radio Dramas C

Re: searching a whole array without using a loop

2004-08-23 Thread Chris Devers
you're doing. Commands like these can make your code more compact (and, to some, ipso facto "clearer"), more efficient, and should be immediately clear to anyone that has put in the effort to become familiar with the language. -- Chris Devers [EMAIL PROTECTED] http://devers.

Re: seek help!!

2004-08-24 Thread Chris Devers
data you're starting with is like and what format (do you mean Word Documents?) you're trying to end up with. Demonstrate that you've tried to solve this on your own and people on mailing lists will be more willing to lend you a hand. -- Chris Devers -- To unsubscribe, e-mail: [

Re: how to print pdf files to particular printer like LASER in windows

2004-08-24 Thread Chris Devers
programming? You may have come to the wrong place, but it's hard to tell. It sounds like you need to talk to your sysadmins to find out how to print to particular printers. Once you know the command to use, you should be able to wrap it in a system command in a Perl script. -- Chris Devers

Re: security on a html page with perl.

2004-08-24 Thread Chris Devers
s about as good as forcing the user to have visited the first page to begin with. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: security on a html page with perl.

2004-08-24 Thread Chris Devers
On Tue, 24 Aug 2004, Jose Alves de Castro wrote: On Tue, 2004-08-24 at 15:22, Chris Devers wrote: The obvious way I can think of to do this is to make the download page a script that checks to see that: * mandatory form fields are defined as input for the download script * the referring page

Re: pulling out "a","an", "the" from beginning of strings

2004-08-24 Thread Chris Devers
Cities, A", and if you have to reconstitute the original title later, you haven't thrown anything away... -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: security on a html page with perl.

2004-08-24 Thread Chris Devers
problem, but don't do that if you don't need to. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: pulling out "a","an", "the" from beginning of strings

2004-08-24 Thread Chris Devers
" is for ignoring case; is that correct? Yes. Just need some help with RE!! `perldoc perlre` Or the wonderful -- really! -- book, _Mastering Regular Expressions_. -- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/ np: 'Colt 45' by from 'Televis

Re: utility to install modules

2004-08-25 Thread Chris Devers
#x27;s a bug in some old versions of CPAN.pm that will make a royal mess if you let it do this. Once the CPAN shell is set up, you can just do things like this: perl -MCPAN -e 'install Bundle::Whatever' or $ sudo perl -MCPAN -e shell cpan> install Bundle::Whatever etc. Ver

Re: how can I |more output.

2004-08-26 Thread Chris Devers
0.05/lib/Class/DBI/Pager.pm> You may also want to consider Data::Page and IO::Pager: <http://search.cpan.org/~lbrocard/Data-Page-1.03/lib/Data/Page.pm> <http://search.cpan.org/~jpierce/IO-Pager-0.05/lib/IO/Pager.pm> All of these can emulate the behavior of th

Re: utility to install modules

2004-08-26 Thread Chris Devers
up with this machine's network connection, and make sure that you can interact with remote FTP servers, before you'll be able to get anywhere with the CPAN shell. -- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/ np: 'Who's The Boss' by ABC TV

Re: OT: VIM perl indentaton

2004-08-27 Thread Chris Devers
ut set autoindent in your ~/.vimrc ? Does that not work ? -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: OT: VIM perl indentaton

2004-08-27 Thread Chris Devers
forge.net/>, and you can sign up for Vim related mailing lists at <http://www.vim.org/community.php>. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: OT: VIM perl indentaton

2004-08-27 Thread Chris Devers
More detailed questions should be directed at Vim related lists. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Regular expression generator/creator

2004-08-27 Thread Chris Devers
t; <http://mathworld.wolfram.com/HaltingProblem.html> And I'd be stunned if you could solve that by the end of the day :-) -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: OT: VIM perl indentaton

2004-08-27 Thread Chris Devers
ferent Things Different (e.g. double-quoted strings are not the same as code blocks), I deliberately don't use braces. The price for this is that Vim doesn't increase the indentation for me automatically, so I have to get that myself. But I can live with that. Vim ain't perfect, but

Re: using Calendar.pm

2004-08-27 Thread Chris Devers
mber of modules related to calendars in CPAN -- <http://search.cpan.org/search?query=calendar&mode=all> -- but which to use depends on what you're trying to do. So -- what are you trying to do? -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

RE: using Calendar.pm

2004-08-27 Thread Chris Devers
On Fri, 27 Aug 2004, Roberts Mr Richard L wrote: On Fri, 27 Aug 2004, Chris Devers wrote: > On Fri, 27 Aug 2004, Roberts Mr Richard L wrote: > >> All, > >> does anyone have any experience w/ calendar.pm? Usage and or >> examples. Cpan is very vague in showing

Re: Regular expression generator/creator

2004-08-28 Thread Chris Devers
ttern matching. If that's all you need, then you're all set, but from the way your first described the problem, it sounded much more complex than this. -- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/ np: 'Wherever I May Roam' by Apocalyptica

Re: Regular expression generator/creator

2004-08-28 Thread Chris Devers
tools will have an increasingly hard time keeping up. This also gets into the sorts of topics that artificial intelligence researchers spend time pondering about -- how do you get a program to automatically recognize that a random image is a person (rather than, say, a statue), etc. It sounds simple,

Re: Could this be made shorter and cleaner?

2004-08-30 Thread Chris Devers
On Tue, 31 Aug 2004, Gavin Henry wrote: This is my first real go at a perl script. Thoughts? Don't send attachments? There's no telling what an attachment contains these days; if it's just a plain text Perl script then please paste it inline with your message. Thanks :-)

Re: Could this be made shorter and cleaner?

2004-08-30 Thread Chris Devers
On Tue, 31 Aug 2004, Gunnar Hjalmarsson wrote: Chris Devers wrote: Don't send attachments? There's no telling what an attachment contains these days; A simple check of the message source is sufficient to preclude virus etc. But why should people have to do that? A simple check of the

Re: Could this be made shorter and cleaner?

2004-08-30 Thread Chris Devers
s up, rather than waiting until the end of the script like this. The common idiom is: some_risky_thing(...) or die "You sunk my battleship! $!"; or die "You sunk my battleship! $!" unless some_risky_thing(...); which, again, comes down to which seems more readable. This ca

RE: Could this be made shorter and cleaner?

2004-08-31 Thread Chris Devers
sendmail( To => "$to", From=> "$from", Subject => "$subject", Message => "The remote backup has $stat{now} on $ENV{HOSTNAME}" . " on $time with the command:\n\n $rdiff @args\n"

Re: Perl Binary

2004-08-31 Thread Chris Devers
re dealing with. -- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/ np: 'Fraggle Rock Theme Song (in German / auf Deutsch)' by Fraggles from 'Fraggle Rock' -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: Collecting Data in an Output File

2004-08-31 Thread Chris Devers
t;> ) { my ($ts, $cpu, $temp) = split("," $_); push (@{ $processors{$cpu} }, $temp); } Then to get at the data, do something like foreach $cpu ( sort keys %processors ) { print "$cpu: @{ $processors{ $cpu }}\n" } ...or something like that.

Re: How to get config file via http

2004-08-31 Thread Chris Devers
ument root and serve it directly from Apache or whatever. If you want, you can have the web server put a password lock (etc) on the directory that the file lives in, or you can just drop it there and forget about it. I'm unclear why you'd necessarily have to get Perl involved he

Re: How to get config file via http

2004-08-31 Thread Chris Devers
On Tue, 31 Aug 2004, Chris Devers wrote: On Tue, 31 Aug 2004, Tim Musson wrote: Hey all, I want to grab a config file from a web server. Basically I need to pull a ServerList.csv from a web server so I don't have to distribute it all over. Is this a Perl question? Duh, yes, it is -- you

Re: How to get config file via http

2004-08-31 Thread Chris Devers
e LWP toolkit is probably the place to start for this kind of work. I mean really, how much simpler can it be than "get($url)" ? :-) But read the perldoc for LWP (and the modules it bundles) to get a fuller idea of what you can do: <http://search.cpan.org/~gaas/libwww-perl-5.8

Re: Perl Script for accessing XML file

2004-08-31 Thread Chris Devers
w how much expertise they would have with ASP either... -- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/ np: 'Movin' Right Along (lo-fi midi version)' by The Muppets from 'The Muppet Movie Soundtrack' -- To unsubscribe, e-mail: [EMAIL PROTECT

RE: Perl Script for accessing XML file

2004-08-31 Thread Chris Devers
. (Also, it's "Perl" for the language, "perl" for the program that runs scripts written in the language, and never ever "PERL" for anything.) -- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/ np: 'It's Not Easy Being Green

Re: How to get config file via http

2004-09-01 Thread Chris Devers
nload - Fetch large files from the web lwp-mirror - Simple mirror utility lwp-request - Simple command line user agent lwp-rget - Retrieve web documents recursively These programs are all written in Perl, so examining their source might give you ideas for the kinds of things that can

Re: gmail api

2004-09-02 Thread Chris Devers
cess software: <http://slashdot.org/article.pl?sid=04/08/28/1853234> It's possible that Google is changing their interface in ways that breaks modules like these. Are you using current versions of each? It may make more sense to contact the authors of these modules. -- Chris Dev

Re: screensaver prevention

2004-09-02 Thread Chris Devers
y use Perl for this, or any scripting language for that matter? -- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/ np: 'Loser' by Aimee Bender, read by Matt Malloy from 'This American Life: Crimebusters and Crossed Wires' -- To unsubscribe, e-ma

RE: screensaver prevention

2004-09-02 Thread Chris Devers
On Thu, 2 Sep 2004, Dave Kettmann wrote: Maybe he doesnt have admin access to the machine? :) Just a thought... You mean the screen saver isn't a user-level setting? How bizarre... -- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/ np: 'Santaland Diaries (complete

Re: screensaver prevention

2004-09-03 Thread Chris Devers
"my" the first time they are used. Therefore, the fix is simply to edit this line: $cursor->moveto(0, 0, -time=>1000); to look like this instead: my $cursor->moveto(0, 0, -time=>1000); That should get you past this error. -- Chris Devers [EMAIL PROTECTED] ht

Re: screensaver prevention

2004-09-03 Thread Chris Devers
On Fri, 3 Sep 2004, JP wrote: Why not just change it in the system settings? Because my administrator turned off the permissions to change te settings Ok, that changes everything. This was worth mentioning in your first mail! :-) -- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net

Re: Problems installing DBD-Interbase on Fedora

2004-09-03 Thread Chris Devers
by Edwin Pratomo <[EMAIL PROTECTED]> and Daniel Ritz <[EMAIL PROTECTED]>: <http://search.cpan.org/~edpratomo/DBD-InterBase-0.43/InterBase.pm> It may also be worth contacting these two for suggestions. Or maybe someone here will speak up, but I think in this case you'l

Re: feeding standard input calling an external program

2004-09-07 Thread Chris Devers
;myprogramname < $temp_xml_file") and you should be much safer from invalid data problems in the shell. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Net::SNMP session creating problem

2004-09-07 Thread Chris Devers
session, $error) = Net::SNMP->session( -hostname => "localhost", -community => "public", -port => 161); defined($session) or die "ERROR: $error\n$!\n";' $ This suggests that the module is probably working, and the line that calls the session(...) may n

RE: feeding standard input calling an external program

2004-09-07 Thread Chris Devers
nd line is doomed to failure; putting it in a temp file should be much more robust. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: feeding standard input calling an external program

2004-09-07 Thread Chris Devers
use the temp file, or the IPC approach that was also suggested in this thread, but not a naked system command. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Net::SNMP session creating problem : develop this as a pakage file

2004-09-08 Thread Chris Devers
Can I write a perl package file following to OOP concepts ,i.e create an instance of the SNMP $snmpInstance = new SNMP(arguments) SNMPgetResult = $snmpInstance->snmpget(arguments) Yes, this can be done. See above for guides as to how to do this. -- Chris Devers -- To unsubscribe, e-mail: [

Re: Foo (Bar)

2004-09-08 Thread Chris Devers
ted string or a variable, so Perl might complain about passing it as an argument because it's not clear what should be done with bar; if it should be treated as a string, it should be wrapped in single- or double-quotes, and if it is a variable then it needs a prefix ($ @ % &). )

Re: Foo (Bar)

2004-09-08 Thread Chris Devers
uot;sigil". (In this context, I'm treating a subroutine [that does something] as a noun, not thinking about how "verb"y they are, in order to be consistent with the other uses of sigils.) -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Foo (Bar)---I now see the light! (Or that which is made light of)

2004-09-08 Thread Chris Devers
kers think that..." -- that's when you stop reading and go on to the next entry, because everything that follows should more accurately be prefixed with "Eric Raymond thinks that..." and, well, why bother? :-) -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: dbm-file versions

2004-09-09 Thread Chris Devers
at have been annoying DBM users for years now. Read more about it: <http://search.cpan.org/~msergeant/DBD-SQLite-1.04/lib/DBD/SQLite.pm> <http://www.perl.com/pub/a/2003/09/03/perlcookbook.html> If you're not already locked in with DBM, SQLite may be much easier. -- Chris

Re: CC mit Mailprog funktioniert nicht

2004-09-09 Thread Chris Devers
German. Danke! -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: "CC" will not send any mail :-(

2004-09-09 Thread Chris Devers
like Mail::Simple or one of the newer Email::* ones. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: "CC" will not send any mail :-(

2004-09-09 Thread Chris Devers
paces before & after the Cc line in the headers, that's broken -- but it looks like you just did that for illustration. -- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/ np: 'Christopher Lydon' by The Dresden Dolls from 'A Is For Accide

Re: CC mit Mailprog funktioniert nicht

2004-09-10 Thread Chris Devers
On Fri, 10 Sep 2004, Casey West wrote: Agreed. I stand happily overruled :-) -- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/ np: 'Coin- Operated Boy' by The Dresden Dolls from 'The Dresden Dolls' -- To unsubscribe, e-mail: [EMAIL PROTE

Re: Threads Perl On Solaris

2004-09-10 Thread Chris Devers
g), it's much harder to rely on forking, so you more or less have to use threads, but elsewhere it's generally a matter of whatever is the most convenient. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn

Re: curses

2004-09-13 Thread Chris Devers
this to multiple lists Thanks, and good luck! -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: perl_mod

2004-09-13 Thread Chris Devers
On Mon, 13 Sep 2004, Patricio Bruna V. wrote: > where i can start? Google? Amazon? Specific, concrete questions? -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.pe

RE: Reading input and Word completion

2004-09-13 Thread Chris Devers
. However, if you search for 'perl term::complete' on Google, I see at least a couple of more substantive hits within the first dozen returned. Please read over the documentation you can find, then write a brief script to try it out. If your script fails, sent that brief script back to

Re: Reading input and Word completion

2004-09-13 Thread Chris Devers
m: the function provides "Complete", with a capital "C". This error refers to "complete", with a lowercase "c". Fixing the case may resolve the problem. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: Regex help

2004-09-14 Thread Chris Devers
omplicated than a simple tr/...// statement. Have you tried doing it that way ? -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

  1   2   3   4   5   6   7   >