Re: Net::RawIP - UDP checksum

2016-08-23 Thread Mitescu George Dan
, although I have followed the documentation (or at least I think so). If anybody knows libraries which the source address can be customly set, please let me know. Regards, Mitescu George Dan Fedor Sumkin writes: > Hi all, > > I guess that everything is fine with Net::RawIP. > >

Re: Net::RawIP - UDP checksum

2016-08-22 Thread Mitescu George Dan
vide it manually via "check" parameter > during object construction. > > So my guess is you incorrectly construct Net::RawIP objects. But it's > a sort of guesswork, so it'll be much easier to help if You send a > piece of code to illustrate the problem. > &g

Re: Net::RawIP - UDP checksum

2016-08-22 Thread Mitescu George Dan
ill be calculated > automatically unless your provide it manually via "check" parameter > during object construction. > > So my guess is you incorrectly construct Net::RawIP objects. But it's > a sort of guesswork, so it'll be much easier to help if You send a > pie

Net::RawIP - UDP checksum

2016-08-21 Thread Mitescu George Dan
. You can also give me suggestions about other modules which are as easy to use as this one for changing the source address. :D Regards, Mitescu George Dan -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Raw::NetIP - UDP checksum

2016-08-21 Thread Mitescu George Dan
. You can also give me suggestions about other modules which are as easy to use as this one for changing the source address - most of those I have found do not have this option (eg. : Net::Write) Regards, Mitescu George Dan -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additio

RE: Any Good SCM tool to manage Perl Code locally

2010-03-14 Thread Dan Fish
You might want to have a look at Seapine Surround. It's not opensource, but you can get a free single-user license and it's a very good SCM program. It's also available on a variety of platforms. http://www.seapine.com/scmlicensing.html -Dan -Original Message- Fr

Out of Memory error with large Oracle DB extraction

2009-11-19 Thread Dan Fish
handle the buffering details myself and still be able to use $sth->fetchall_arrayref() ) Any other elegant methods or suggestions for handling data extractions of this size? Once again, this is new territory for me... any suggestions or examples greatly appreciated! Thanks! -Dan

Re: pcregrep match groups

2009-10-22 Thread Dan Wallis
2009/10/16 Chris Allen : > smoothly with the least amount of code.  One thing in particular is > driving me crazy - I can't figure out how to output only the contents > of my match groups with pcregrep. I'm not familiar with pcregrep, nor is my answer related to Perl, but gnu grep has an -o or --m

Re: Want to write a script to note specific IP addresses.

2009-10-22 Thread Dan Wallis
2009/10/19 Hongyi Zhao : > I want to write a script to note specific IP >  addresses by appending the corresponding location informations.  For I suggest you take a look at Geo::IP [0]. I've used it quite a few times in the past for similar tasks to what you're describing. I could supply an exampl

Re: PDF generation from a database!!

2009-09-01 Thread Dan
GUI builder, but never had the time for it. Dan -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: PDF generation from a database!!

2009-08-31 Thread Dan
t definitions, etc, etc. http://entropy.homelinux.org/axis/ ( click on 'reports' at the top ). Dan -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

mod_perl: access full request, log it, etc

2009-08-23 Thread Dan
homelinux.org User-Agent: SOAP::Lite/Perl/0.710.08 Content-Length: 476 Content-Type: text/xml; charset=utf-8 SOAPAction: "/something_else" ... but the actual SOAP envelope is missing. How do I get hold of the WHOLE request? Thanks :) Dan -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: recommendations for web/database applications

2009-07-27 Thread Dan
As for scalability, Gtk2::Ex::DBI has built-in record paging, and the page size is adjustable. In one of my production apps, I've got a config page where people can select different profiles ( LAN, DSL, etc ), which changes the page size. And yes, it works very well across DSL. Dan -- To

Re: help with a regex

2009-07-18 Thread Dan Wallis
continues at the next iteration. See "perldoc -f next" for a better explanation than I can write. Dan -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: join(): is order guaranteed?

2009-07-12 Thread Dan
hat I assumed, but as has been discussed, it's not actually mentioned in the docs. Thanks once more :) Dan

join(): is order guaranteed?

2009-07-12 Thread Dan
Hi people. Is the order of results from a join() operation guaranteed ( assuming my array doesn't change, of course )? Dan -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: module for accessing MSSQL

2009-07-07 Thread Dan
You'll need freetds, and setting up the odbc.ini file is a little tricky. But it works well once it's working. I've used both DBD::Sybase and DBD::ODBC, and DBD::ODBC was better for me, because it supports 'bind variables'. Dan -- To unsubscribe, e-mail: beginners-unsu

Re: Price comparison-agent

2009-06-15 Thread dan
possible. Ha! Sorry. That's highly unlikely. It's quite a specialised task, and people who have done it will likely be guarding this code. I wrote some code a while back to parse a webpage. I used LWP::Simple to fetch the page contents, and HTML::TreeBuilder to parse it. Dan -- To unsubs

Re: HTML Template

2009-06-08 Thread dan
hots along the right-hand side to see a demo app and a production app in action. Dan -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

RE: Simple regex question

2009-05-19 Thread Dan Fish
> > Simple question for the regEXperts out there... > > > > I have a string that is always in the format:  a.nn+x.y > > > > a is always 5 chars > > n can be 1 or 2 digits > > x can be +/- (with sign), 1-4 digits > > y is always positive (no sign), 1-4 digits > snip > > What do you mean by char

Simple regex question

2009-05-19 Thread Dan Fish
3]; but in my quest for understanding regex, I'm always looking for more elegant (obfuscated :-) code... Anybody have a good one-liner for this? my ($part,$unit,$x,$y,$xlen,$ylen) = /* Some obfuscated code here.. */ Thanks! -Dan --- d...@mapson.ninemoons.com (To reply via email, remove &

Packaging 'other' files

2009-05-06 Thread dan
e ago ), the answer was "you can do that, but it requires quite some hacking". Is this so? Thanks :) Dan

Log::Dispatch and Data::Dumper

2009-04-25 Thread Dan Fish
that can pull back a fairly large table from a database and would like to do something similar (at the debug log level only) and was just wondering if there were a more efficient way to pass the output of Data::Dumper to Log::Dispatch. -Dan

Looking for a quick, easy way to time system process to the sub-second

2009-04-10 Thread Dan Huston
suggestions? Thanks Dan -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Printing directory sizes

2009-03-31 Thread Dan Wallis
On 04/03/2009, Lauri Nikkinen wrote: > And I would like to write to script which prints into STDOUT (=cmd screen) > all the directories in this folder (C:\Perl\) and and their size. So the out > put should look like this: > > Directory bin: size xxx megabytes > Directory cpan: size xxx megabytes >

Re: connecting to multiple hosts using Net::SSH2

2009-03-15 Thread Dan Wallis
On 09/03/2009, Jerald Sheets wrote: > to what was offered. When I get past leisurely using perl (I've been > "in the family" for about 8 months now) and get a chance to use it in > production more, I'm sure I'll be a little more familiar with the > various indentation styles and issues surroundi

Parsing Key/Value pairs

2008-09-24 Thread Dan Fish
str) = @_; while ($str =~ m/(.*)=(.*);/g){ print("$1,$2\n"); } } This prints: foo,bar okey=dokey;file=a file name with spaces;yourkey,mykey when what I'm really looking for is: foo,bar okey,dokey file,a file name with spaces yourkey,mykey Any help appreciated! Thanks, -Dan

Re: Fetching "n" number of records at a time in Perl DBI !

2008-09-11 Thread dan
millions of records, this is incredibly CPU & memory intensive for the DB server, and not feasible if you've got multiple clients hitting the DB server. Also as noted in my previous post, if you're not very careful with sorting, you'll can end up getting duplicate records

Re: Fetching "n" number of records at a time in Perl DBI !

2008-09-11 Thread dan
On Thu, 11 Sep 2008 17:23:22 +0530, Amit Saxena <[EMAIL PROTECTED]> wrote: > Hi all, > > I am looking for a "fetch" function to fetch "n" number of records at a > time > in Perl DBI ! I had to do this kind of thing to implement 'record paging' in Gtk2::Ex::DBI. The way I did it was in a couple o

Re: Question on Perl

2008-08-27 Thread dan
the best perl IDE around. The only area it falls behind Komodo ( a commercial perl IDE ) is in remote debugging. Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: encrypt a text file

2008-08-27 Thread Dan Baker
[EMAIL PROTECTED] wrote: how to encrypt a text file and decrypt it with perl? for example, I have a config file, svr.conf I want to encrypt it to svr.conf.encrypt. But I should also have the ability to decrypt the encryped one to the original text. when using crypt

Re: matching ' in regx

2008-08-26 Thread Dan Baker
Mr. Shawn H. Corey wrote: $UploadedImage = 'badname\'s.jpg' ; if ( $UploadedImage =~ m/'/ ) { ... How do I match the ' ? You match it exactly like you're doing. Since CGI is involved, I'd look elsewhere from the problem. Are you absolutely certain that some software between the browser a

matching ' in regx

2008-08-26 Thread Dan Baker
I have a thing driving me NUTS trying to detect a ' in a variable with regex, and either strip it out or at least detect and error out. for instance, this just does NOT work. $UploadedImage = 'badname\'s.jpg' ; if ( $UploadedImage =~ m/'/ ) { &Warning_Status( $cCgiStatusFile ,

RE: How to ftp all the files?

2008-03-26 Thread Dan Fish
Might want to check out ncftp client. Works very well, multiple platform support and free! I use it for nearly all my batch ftp needs (albeit I have only used the Solaris version...) http://www.ncftp.com/ncftp/ -Dan > -Original Message- > From: Siegfried Heintze (Aditi) [

Re: Use of uninitialized value in numeric ne error

2007-12-21 Thread Dan Klose
type 99 as a choice, the program ends if like is a string the you can't do != as it is a numerical comparison line 11 is: while ( $line != 99){ more of the script would be handy - as it looks (at a quick glance) as if $line is null. thanks ken Dan. -- To unsubscribe, e

Re: fixed list combinatorics

2007-11-28 Thread Dan Klose
yeah sorry, I should have posted. Thanks all for the solutions. Next time I will post if I get a solution to the problem. On 28 Nov 2007, at 19:58, yitzle wrote: In a personal email conversation, he realized what he was actually looking for is the power set. List::PowerSet http://search.cp

Re: fixed list combinatorics

2007-11-28 Thread Dan Klose
key; >push ( @{$comb}, $line ); > >for ( my $i = $n ; $i <= $#list ; $i++ ) { >$line .= $list->[$i]; >push ( @{$comb}, $line ); >} >$n++; >} > } > > If this indeed what your asking. > > A > AB >

fixed list combinatorics

2007-11-28 Thread Dan Klose
Hi list, I am having a bad day and would really like some help (the coffee hasn't). I have a list that looks like: my @list = (1,2,3,4); I would like to generate all patterns that follow: 1 2 3 4 12 123 23 34 234 1234 The list can be of any length and the next number in the list must be

RE: learning WWW::Mechanize

2007-11-12 Thread Dan Fish
Assuming what you are really looking for from this is the page returned by the search, then you need to move the line: print $mechObject -> content; to the end. -Dan --- #!/usr/bin/perl use strict; use warnings; use WWW::Mechanize; my $queryStr

HTTP Filtering and Threads...

2007-09-14 Thread Dan
Hi, That's my first program and my first question in perl programming.. lolll! Any kind of help is appreciated. :) 1) I have a code in perl which is doing a HTTP request and getting a response and saving in a variable, so I want to filter a specific value of a field. My code is more or less like

& and >>

2007-09-04 Thread Dan Sopher
http://perldoc.perl.org/functions/printf.html> "child exited with value %d\n", $? >> 8; } Thanks in advance, Dan

foreach and map..how are they different?

2007-08-24 Thread Dan Sopher
Aside from the syntax, is there a difference in the way 'map' and 'foreach' process? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Perl Courses

2007-08-24 Thread Dan Otterburn
On Tue, 21 Aug 2007 17:02:23 -0400, John Arbes wrote: > Does anyone have any recommendations on Perl Courses I believe Stonehenge are excellent (http://www.stonehenge.com/) - they certainly should be given their roster! -- Dan Otterburn <[EMAIL PROTECTED]> -- To unsubscribe, e-mai

RE: File::Find help

2007-08-16 Thread Dan Sopher
d=>sub { &found([EMAIL PROTECTED]) }, no_chdir=>1 }, $dir ); print @list; } sub found { my $list = shift; ## Do some string processing here... push @{$list}, $_ if -f $_; return; } -Original Message- From: Dan Sopher [mailto:[EMAIL P

File::Find help

2007-08-16 Thread Dan Sopher
Hello. The following code example creates a list of regular files in a directory. Using File::Find, I'm unable to localize an array to hold the list of files. Is there a way to create the list with a localized array? TIA. #!/usr/bin/perl -w ## Create a list of regular files in a directory. us

RE: regex help

2007-08-08 Thread Dan Sopher
This works in a one-liner: $string =~ s/^\s*(.*\S)\s*$/$1/; Cheers! -Dan -Original Message- From: Dr.Ruud [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 08, 2007 2:05 PM To: beginners@perl.org Subject: Re: regex help Jeff Pang schreef: > John W. Krahn: >> Tony Heal:

DBD::Oracle for perl testing issues

2007-07-05 Thread Dan King
I am attempting to install DBD::Oracle for Perl. I am having some difficulties though. During the make test procedure a number of my tests fail. One of them is the 10general.t test. It fails on lines 31 and 32 which has is system("exit 1;"), 1<<8, 'system exit 1 should return 256'; is system("exi

RE: Capturing stdout and stderr without redirection

2007-01-18 Thread Dan Fish
nts. Bingo! Works perfectly! Thanks again -Dan -Original Message- From: Igor Sutton [mailto:[EMAIL PROTECTED] Sent: Thursday, January 18, 2007 2:31 AM To: Dan Fish Cc: beginners@perl.org Subject: Re: Capturing stdout and stderr without redirection Hi Dan, 2007/1/18, Dan F

Capturing stdout and stderr without redirection

2007-01-17 Thread Dan Fish
ipt.pl to a file and read that, but is there a better, more elegant way to capture any stdout/stderr output WITHOUT having to redirect and read another file? Thanks! -Dan

get mysql data by column name

2006-10-16 Thread Dan
If so, can anyone point me in the right direction as to how to figure it out, or provide me a few lines of sample code I can learn off? Many thanks, Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

best way of getting a web document

2006-06-24 Thread Dan
#x27;s for creating, not parsing rss feeds. any input greatly appreciated. dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: substitute/regex etc

2006-05-29 Thread Dan
""John W. Krahn"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > John W. Krahn wrote: >> Dan wrote: >>>how can i substitute, or remove anything that's not an alphanumerical >>>character in a string? >> >>

substitute/regex etc

2006-05-27 Thread Dan
anything that's not an upper case letter as the second char) then (rpelace anything that's not a number as the third char). or is this right? thanks, dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Is there any way to get the name of the Window Server that the Perl script is currently running on?

2006-05-26 Thread Dan
"Japerlh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Help: Is there any way to get the name of the Window Server that the Perl script is currently running on? Thanks. you can try: use Config; print "OS: $Config{'osname'} $Config{'osver'}\n"; returns: MSWin32 5.0 for me, tho

Re: regex..gah

2006-05-09 Thread Dan
rname in question (as this is always going to change). is there any easy way to do this with regex or otherwise? i hope this makes it a little clearer! thanks, dan ""Dr.Ruud"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Dan" schreef: >

regex..gah

2006-05-08 Thread Dan
te a program some months back which utilised a compelx regex sub $onchan{lc($data[0])} =~ s/(,|^)\Q$data[1]\E(?=,|$)//; which substitutes the exact match for $data[1] in a long string which is csv, and replace it with nothing. i'm trying to use the same routine, or the same method, to get the

using PDF:FDF module

2006-04-19 Thread Dan Hunter
k you very much. dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

[ANNOUNCE] PDF::ReportWriter-0.9

2006-01-15 Thread Dan
After much procrastinating and inactivity, I'm pleased to announce the next major release of PDF::ReportWriter PDF::ReportWriter is a part of the Axis Not Evil project, a suit of cross-platform Perl modules that combine to provide an alternative to a 'leading' software vendor's RAD design tool fo

[ANNOUNCE] Gtk2::Ex::Datasheet::DBI-2.0

2006-01-15 Thread Dan
After much procrastinating and inactivity, I'm pleased to announce the next major release of Gtk2::Ex::Datasheet::DBI Gtk2::Ex::Datasheet::DBI is a part of the Axis Not Evil project, a suit of cross-platform Perl modules that combine to provide an alternative to a 'leading' software vendor's RA

Win32 distributions - What are people using?

2006-01-13 Thread Dan Huston
alternative. Any suggestions (besides switch to linux - I do use linux but sometimes you have to play nice with others :)? --Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

string interpolation when reading from a file

2006-01-10 Thread Dan Huston
LOSE-FOR-K produces this output in STDOUT: TABLE_NAME => STUDENTS K => REVOKE SELECT ON $TABLE_NAME FROM PUBLIC; where I want to have : K => REVOKE SELECT ON STUDENTS FROM PUBLIC; ## CODE SNIPPET # Thanks Dan -- To u

[ANNOUNCE] Gtk2::Ex::DBI-2.0

2005-12-18 Thread Dan
After much procrastinating and inactivity, I'm pleased to announce the next major release of Gtk2::Ex::DBI Gtk2::Ex::DBI is a part of the Axis Not Evil project, a suit of cross-platform Perl modules that combine to provide an alternative to a 'leading' software vendor's RAD design tool for dat

How to "push" data onto a Class::Struct array?

2005-12-13 Thread Dan Fish
y The following code is a greatly simplified version of what I'm trying to do, but I hope it conveys the idea.. Thanks, -Dan === code snippet === #!/usr/local/bin/perl -w use strict; use Class::Struct; use Data::Dumper; my @stack = ()

Re: DBI:ORACLE

2005-12-07 Thread Dan Klose
On Wed, 2005-12-07 at 12:50 +0200, Lorenzo Caggioni wrote: > HI!!! Hi > i'm tring to use DBI module > > Here is the code > > #!/geneva/geneva/dev1/perl5/bin/perl > # > > use strict; > use DBI; > use warnings; > > my $dbh = DBI->connect( 'dbi:Oracle:MYSEED, > 'donald', >

Re: Open source IDE for Perl

2005-11-30 Thread Dan Klose
> Dear all, > which is yours "best" open source IDE for Perl. I use SciTE under Linux, > but I'm a little confused on Windows. Which do you prefer? > >>Best, Andrej I use emacs on Mac, Linux and Windows. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

Re: Checking the Machine's Operating System

2005-11-21 Thread Dan Klose
lnet and or socket. Dan. > > Thanks in Advance > Mazhar -- Daniel Klose PhD Student - Taylor Group Mathematical Biology National Institute for Medical Research The Ridgeway Mill Hill London NW7 1AA -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

Re: How to change the Owner of a file

2005-10-31 Thread Dan Klose
script should work. Have you tried changing the permissions by hand? (Just to see if you can!) So if the above assumption is correct and you can't change the permissions I would check if you can run the script as root or get sudo accounts. Hope that is of some use. DAn, > bye >

Re: about running unix command in perl script

2005-10-28 Thread Dan Klose
On Fri, 2005-10-28 at 03:37 -0700, ZHAO, BING wrote: > Hi, > Is there a way to run unix command in perl? > To be specific, for the ftp command: > 1.ftp ftp.rcsb.org > 2.cd /pub/pdb/data/structures/divided/pdb/ > 3.cd

Re: Help unsubscribing from list

2005-10-17 Thread Dan Klose
NO IDEA - sorry! To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: do I need further modules?

2005-10-17 Thread Dan Klose
) I get the > following output: > (I have marked the interesting things) > Hello. Can't you use YAST, if you are on SUSE, to do all this for you? Or is that what you have done? Dan. > ... > Checking if your kit is complete... > Looks good > Warning: prerequisite Tk 0 not f

Re: EAR file

2005-10-13 Thread Dan Klose
." You should submit some code for the list to look at, make changes to and offer advice. People have their own coding to do and probably don't want to do yours too unless you wish to make a small donation. You need to be more specific about what you wish to change. Dan. > >

Re: automatically submitting web forms.

2005-10-11 Thread Dan Klose
On Tue, 2005-10-11 at 17:47 +0200, Xavier Noria wrote: > On Oct 11, 2005, at 17:27, Dan Klose wrote: > > > Thanks for your suggestions. I am going to give it a try... > > However there is another way I am also going for. If you have lynx > > you > > can use: >

Re: automatically submitting web forms.

2005-10-11 Thread Dan Klose
On Tue, 2005-10-11 at 16:44 +0200, Xavier Noria wrote: > On Oct 11, 2005, at 16:23, Dan Klose wrote: > > > I would like to be able to automagically submit a form to a > > server. The > > server requires that I give it a sequence of letters (a protein) in > > one

automatically submitting web forms.

2005-10-11 Thread Dan Klose
@ ucl. I have no idea how to go about doing this and was wondering if someone would be kind enough to point me in the right direction (a book web site etc). I guess POST or something like that? Thanks. Dan. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

HOA idiocy.

2005-10-10 Thread Dan Klose
omething very trivial but I just can't work out what it is. If someone could make the pain go away that would be great. Thanks and apologies. Dan. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: problem with GD

2005-10-07 Thread Dan Klose
ou haven't tried PPM it should be in your start menu under activestate perl. Dan. > Thanks in advance, > with regards > Aditi -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: regd. executing one perl file inside another perl file

2005-10-04 Thread Dan Klose
On Tue, 2005-10-04 at 19:55 +0530, [EMAIL PROTECTED] wrote: > Hi Dan > Could u plz elaborate ur logic in detail I think it might work.. > Mayank Ahuja Hi Mayank, You really need to work this out for yourself. You should try and submit some code so that people can co

Re: regd. executing one perl file inside another perl file

2005-10-04 Thread Dan Klose
but it might work on linux and with minor mods on windows. > Will the execute() funtion solve the purpose .....which we > use in DBI etc. I don't think so. I think your . button maybe stuck! HTH Dan. > > > thankX > > n > With w

RE: how to make charts using GD

2005-09-28 Thread Dan Klose
On Wed, 2005-09-28 at 08:10 +0200, Thomas Bätzler wrote: > Hello, > > Aditi Gupta <[EMAIL PROTECTED]> asked: > > I have a perl code that generates a sequence of values which > > i want to plot on y-axis against 1,2,3... on x-axis. I've > > read that GD::Graph could be used for it. But I've n

Re: the time a program runs

2005-09-26 Thread Dan Klose
u can do: time ./my-script.pl and you get: real0m3.562s user0m2.201s sys 0m0.017s What is the advantage of using something in the perl script (Time::HiRes || the $^T) ? Thanks. Dan. -- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Looking for perl scripts to remove ^M

2005-09-25 Thread Dan Klose
st way to handle it is to open the input stream on DOS > files :crlf, as in 'open(FH, "<:crlf", "dosfile")', and let perlio > worry about it for you. > > HTH, > > -- jay Hello, remove the last *pesky* character(^M) I posted something like this ages ago, I imported an EndNote Library and it was populated with ^M(s). Xavier Noria suggested using: perl -pi -we 's/\015//g' filename Which worked. Hope that is of some use. Dan.

[ANNOUNCE] Gtk2::Ex::DBI-1.3 and Gtk2::Ex::Datasheet::DBI-0.9

2005-09-19 Thread Dan
I'm pleased to announce the next round of updates to Axis Not Evil, a suit of Perl modules that combine to provide an alternative to a 'leading' software vendor's RAD design tool for database access. Project Page: http://entropy.homelinux.org/axis_not_evil/ --- Gtk2::Ex::DBI Changelog for this

mysql server has gone away

2005-09-04 Thread dan
y on. the other thing is, it goes away instantly. the wait_timeout on the sql server's still default (8 hours, i believe). and i've *never* had a problem with this code before. something's happened to a configuration, or something, and i can't figure out why. i'm now tearing

open file for read and append

2005-08-23 Thread Dan Klose
Hello, I have a script where I need to open a file, read from it sequentially, and append items to the file as I go along, continuing to read these items as I go. But seems I can't open the file for read and append at the same time. Does anyone have any ideas? Many thanks. -- Daniel Klose PhD

[ANNOUNCE] Gtk2::Ex::DBI-1.2 and Gtk2::Ex::Datasheet::DBI-0.8

2005-08-14 Thread Dan
I'm pleased to announce the next round of updates to Axis Not Evil, a suit of Perl modules that combine to provide an alternative to a 'leading' software vendor's RAD design tool for database access. Project Page: http://entropy.homelinux.org/axis_not_evil/ Main changes for this release are th

Re: A better way.

2005-08-02 Thread Dan Klose
Hi, I have gone for the following code: my %avs_dev = map{ $_ => [mean($hoa{$_}), dev($hoa{$_})] } keys %hoa; for (sort {$avs_dev{$a}[0] <=> $avs_dev{$b}[0]} keys %avs_dev) { print "$_, $avs_dev{$_}[0], $avs_dev{$_}[1]\n"; } I have never used MAP before... it looks handy! Works a treat. Th

A better way.

2005-08-02 Thread Dan Klose
f anyone has the time could you please show me ways of shortening this code e.g. eliminating the second for block (integration into the previous block) and any other tips / tricks. There are no other people here that code perl and so I get no advice/feedback on how to improve my scripts. Thanks

send a HUP signal

2005-07-23 Thread dan
end a signal to the process id to get it to (re)read that portion of the database. thanks for your help, dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: wildcard matching

2005-07-23 Thread dan
this worked a treat. thank you so much. i wasn't planning on using ? to match a single character, i figured that would be getting too complicated. how would that be done anyway? i must say my regex skills aren't very good :/ dan "Jeff 'japhy' Pinyan" <[EMAIL

wildcard matching

2005-07-22 Thread dan
sub so it only matches what's given, and wildcards where there's a *? temp1 is the search string, temp2 is the actual string it has to search in. the sub is called from within a foreach loop which loops through a list of hostnames, and responds according to the 1 or 0 this sub retur

Custom message formatting callback for Log::Dispatch

2005-07-08 Thread Dan Fish
destination, but getting the name of the Dispatch object is proving to be beyond my very measly perl programming skills! Any help would be greatly appreciated! Thanks, -Dan [EMAIL PROTECTED] (remove reverse("nospam") to reply via email.) Spambots are getting waaay too smart nowaday

route STDOUT to file

2005-06-25 Thread dan
would work. Could anyone simply this for me, or give me any suggestions for things to try/do/write to make this possible? Many thanks in advance. Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: how to append blocks in same file

2005-06-22 Thread Dan Klose
ed blocks and reassembly by applying an if defined type block. Easy. Dan > > Using a hash of arrays will not necessarily preserve the order. Below > is the start of an array of arrays solution. I'll leave handling > unbalanced blocks and reassembling the pieces as an exercise for

RE: how to append blocks in same file

2005-06-22 Thread Dan Klose
If I was doing this I would split the file on the gaps between blocks and the use the unix paste function to assemble the blocks. &> paste A B C > D ? using a hash of arrays (HOA) to store each block and then go back over the HOA each element at a time ... although this is probably overkill? On

\n & ^M

2005-06-22 Thread Dan Klose
rk and I was wondering if anyone had any ideas/bits of code to get round this. Thanks Dan. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

PDF::ReportWriter-0.5 is out

2005-06-14 Thread Dan
d some simple colour examples to the demo application ( demo.pl in the source code ). I've yet to add an example of image use, but you basically put the path to the image file in the $field->{picture} hash ... in this case, the contents of $field->{text} is ignored. Dan -- To unsubscribe

Re: Text Postioning / Postscript / Enscript - Hylafax

2005-05-13 Thread Dan
s non-existant, but it's far more powerful. There are some how-tos and a wiki somewhere. I would recommend PDF::API2 over Postscript::Simple unless you really only want to do basic stuff. Dan BEGIN-ANTISPAM-VOTING-LINKS -- If you are not

Re: ActiveState Comodo is not stopped on beak points

2005-05-07 Thread Dan
them, and setting up the break points again. Other than that, try posting on the ActiveState mailing lists. Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Compare to a list

2005-04-28 Thread Dan Litsky
in the list and then look for the fields in each file. Dan __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

ANN: PDF::ReportWriter

2005-04-26 Thread Dan
different data sets ) Requirements: - PDF::API2 - Number::Format You can download a copy from http://entropy.homelinux.org/PDF-ReportWriter/ Enjoy. And sorry for the mildly off-topic post. I'm sure there are people in each list who would be interested O:-) Comments / patches welcome. Dan -- To

  1   2   3   4   5   6   7   8   9   10   >