Re: newbie question about regex

2004-09-03 Thread David Dorward
shell issue, not a Perl issue. Escape your brackets or quite your text so that bash (or sh or whatever) won't try to do something special with it. -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: DBI for FireBird

2004-08-20 Thread David Dorward
en it goes on to mention InterBase). -- David Dorward <http://dorward.me.uk/> <http://blog.dorward.me.uk/> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: can't locate Image/Magick.pm in @INC

2004-08-16 Thread David Dorward
m line 25. Does Magick.pm existing in an Image directory in any of those directories? If not - install Image::Magick. -- David Dorward <http://dorward.me.uk/> <http://blog.dorward.me.uk/> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <

Re: how to embed c code in perl programs

2004-08-13 Thread David Dorward
ne-0.44/C/C.pod>. They both look like they should do the job, but I have to confess I haven't used either. -- David Dorward <http://dorward.me.uk/> <http://blog.dorward.me.uk/> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] &

Re: File Size Calculator

2004-08-09 Thread David Dorward
e you stuck? Getting user input (where from)? Working out which order of magnitude the number is? Converting between kilo and mega et al? Showing the output? Show us some code. -- David Dorward <http://dorward.me.uk/> <http://blog.dorward.me.uk/> -- To unsubscribe, e-mail: [EMA

Re: Determining Odd and Even Numbers

2004-08-03 Thread David Dorward
On 3 Aug 2004, at 13:26, [EMAIL PROTECTED] wrote: Does anyone know a simple way to determine if a number is odd or even? Use the modulus operator. If $foo % 2 has remainder 1, then it is odd, if it has remainder 0, then it is even. -- David Dorward <http://dorward.me.uk/>

Re: Trouble with PERL and HTML

2004-07-25 Thread David Dorward
s. You have a link to "index.html" instead of "/index.html" or "../index.html" or "http://www.example.com/index.html";. -- David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/> -- To unsubscribe, e-mail: [EM

Re: Help required with DBI

2004-07-24 Thread David Dorward
On Sat, 2004-07-24 at 19:14, NandKishore.Sagi wrote: > $data_source = "dbi:DriverName:database_name" ; > > Can't locate DBD/DriverName.pm in Change "DriveName" to the name of the driver you want to use (e.g. mysql) Change "database_name" to the name

Re: Windows Perl Environment

2004-07-17 Thread David Dorward
'd be surprised if ActivePerl removed it. http://www.linuxjournal.com/article.php?sid=2484 -- David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://l

Re: how to extract digit from a line in Perl

2004-07-14 Thread David Dorward
dache. Eugh. -- David Dorward <http://dorward.me.uk/> <http://blog.dorward.me.uk/> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: new window on redirect

2004-07-13 Thread David Dorward
I do that using CGI.pm's redirect? print $output->redirect($u) You can't... well... there is the Window-Target not-really-http-header but, last I heard, browser support for that (thankfully) sucks. http://diveintoaccessibility.org/day_16_not_opening_new_windows.html -- David Dorwar

Re: Reading a comma delimited file into an array

2004-06-18 Thread David Dorward
-CSV_XS-0.23/CSV_XS.pm -- David Dorward <http://dorward.me.uk/> <http://blog.dorward.me.uk/> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Identifying words containing a specific substring in a sentence (was: a simple question)

2004-06-16 Thread David Dorward
$string = " axyzb cxyzd "; my @list_of_words = split /\ /, $string; my @list_of_words_containing_xyz = grep /xyz/, @list_of_words; foreach my $word (@list_of_words_containing_xyz) { print $word, "\n"; } or, in less verbose form: foreach (grep(/xyz/,split(/\

Re: How to execute a Perl script in Linux??? (I havent seen linux)

2004-05-25 Thread David Dorward
simple But I dont know what is the command to execute the above script. perl /home/myusername/public_html/cgi-bin/rating/rank.pl -- David Dorward <http://dorward.me.uk/> <http://blog.dorward.me.uk/> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

Re: My & local

2004-05-14 Thread David Dorward
() and my()? (You might have to scroll down a bit to find it though) -- David Dorward <http://dorward.me.uk/> <http://blog.dorward.me.uk/> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: RegExp Help !

2004-05-10 Thread David Dorward
hen a regex. For Example i need only the "register/doregister.asp" in an array ! my $html = qq(); (my $action) = ( $html =~ /action=\"([^\"]*)\"/ ); Replace "my $action" when whatever array location you want to load it into. -- David Dorward <http://d

Re: installing DBI on HPUX

2004-05-10 Thread David Dorward
to-install dependancies for you) -- David Dorward <http://dorward.me.uk/> <http://blog.dorward.me.uk/> -- 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 question about Texinfo

2004-05-04 Thread David Dorward
, roff, and chm. - http://www.gnu.org/software/texinfo/ -- David Dorward <http://dorward.me.uk/> <http://blog.dorward.me.uk/> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <

Re: Directory Listing

2004-04-21 Thread David Dorward
. Take a look at File::Find (to recurse directories) and open (to open a handle you can print to to write to a file).. perldoc File::Find perldoc open -- David Dorward <http://dorward.me.uk/> <http://blog.dorward.me.uk/> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Re: perl book

2004-04-20 Thread David Dorward
On 20 Apr 2004, at 12:10, Prem Vilas Fortran M. Rara wrote: --- Gabriel Striewe <[EMAIL PROTECTED]> wrote: *"Programming Perl" by Larry Wall (the author of Perl himself), Tom Christiansen and Jon Orwant any online version? <http://safari.oreilly.com/>, which also has Le