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 <qosys@gmail.com> writes: > Hi all, > > I guess that everything is fine

Re: Net::RawIP - UDP checksum

2016-08-22 Thread Mitescu George Dan
gt; 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 > piece of code to illustrate the

Re: Net::RawIP - UDP checksum

2016-08-22 Thread Mitescu George Dan
a > piece of code to illustrate the problem. > > > 21.08.16 17:31, Mitescu George Dan пишет: >> Hello, >> >> I am trying to use Net::RawIP in order to craft UDP packets, which have >> a custom source ip. The packets get sent, but tcpdump reports that the &g

Net::RawIP - UDP checksum

2016-08-21 Thread Mitescu George Dan
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
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 additional commands, e

RE: Any Good SCM tool to manage Perl Code locally

2010-03-15 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- From: Parag Kalra

Out of Memory error with large Oracle DB extraction

2009-11-19 Thread Dan Fish
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 --- There are only 10 kinds of people in the world

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

2009-10-22 Thread Dan Wallis
2009/10/19 Hongyi Zhao hongyi.z...@gmail.com: 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

Re: pcregrep match groups

2009-10-22 Thread Dan Wallis
2009/10/16 Chris Allen ca.al...@gmail.com: 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

Re: PDF generation from a database!!

2009-09-01 Thread Dan
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
://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
/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
::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 unsubscribe, e-mail: beginners

Re: help with a regex

2009-07-18 Thread Dan Wallis
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/

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: join(): is order guaranteed?

2009-07-12 Thread Dan
. Thanks once more :) Dan

Re: module for accessing MSSQL

2009-07-07 Thread Dan
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-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http

Re: Price comparison-agent

2009-06-15 Thread dan
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 unsubscribe, e-mail: beginners-unsubscr...@perl.org

Re: HTML Template

2009-06-08 Thread dan
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/

Simple regex question

2009-05-19 Thread Dan Fish
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 'reverse(nospam

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 chars? Is any

Packaging 'other' files

2009-05-06 Thread dan
that, but it requires quite some hacking. Is this so? Thanks :) Dan

Log::Dispatch and Data::Dumper

2009-04-25 Thread Dan Fish
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 lauri.nikki...@iki.fi 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

Re: connecting to multiple hosts using Net::SSH2

2009-03-15 Thread Dan Wallis
On 09/03/2009, Jerald Sheets que...@gmail.com 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

Parsing Key/Value pairs

2008-09-24 Thread Dan Fish
); } } 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
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 of steps.

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

2008-09-11 Thread dan
, 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. Anyway, if you find a better way, I'd like to hear it :) Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED

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

Re: Question on Perl

2008-08-27 Thread dan
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/

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: 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

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) [mailto:[EMAIL

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-mail

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

Re: fixed list combinatorics

2007-11-28 Thread Dan Klose
( @{$comb}, $line ); } $n++; } } If this indeed what your asking. A AB ABC ABCD B BC BCD C CD D -Original Message- From: Andrew Curry [mailto:[EMAIL PROTECTED] Sent: 28 November 2007 15:43 To: Dan Klose; beginners@perl.org Subject: RE: fixed list

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

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 $queryString

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
; } Thanks in advance, Dan

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-mail: [EMAIL

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/

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.

RE: File::Find help

2007-08-16 Thread Dan Sopher
([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 PROTECTED] Sent: Thursday, August

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: Why doesn't

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;), 18, 'system exit 1 should return 256'; is system(exit

RE: Capturing stdout and stderr without redirection

2007-01-18 Thread Dan Fish
. 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 Fish [EMAIL

Capturing stdout and stderr without redirection

2007-01-17 Thread Dan Fish
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
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
, 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? s/[[:alnum:]]+//g; Sorry, that should be: s/[^[:alnum:]]+//g; John -- use Perl

substitute/regex etc

2006-05-27 Thread Dan
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, though

Re: regex..gah

2006-05-09 Thread Dan
hope this makes it a little clearer! thanks, dan Dr.Ruud [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dan schreef: if (substr($line,0,5) eq From:) You don't even need to know that 'From:' is 5 characters, if you use if ( 0 == index $line, 'From:' ) i wrote a program some

regex..gah

2006-05-08 Thread Dan
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 'dan' out of dan [EMAIL PROTECTED

using PDF:FDF module

2006-04-19 Thread Dan Hunter
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] 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

[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

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
: 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

[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

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

2005-12-13 Thread Dan Fish
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 = (); struct( foo = { baz

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 PROTECTED]

Re: Checking the Machine's Operating System

2005-11-21 Thread Dan Klose
the same i have to check the type of operating system and then find the size of the disks partitioned. Waiting for your help at the earliest I would look at Network Programming with Perl by Lincoln D. Stein. I might also have a look at CPAN (search.cpan.org) and search for telnet and or socket. Dan

Re: How to change the Owner of a file

2005-10-31 Thread Dan Klose
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 rakesh -- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

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 nx

Re: do I need further modules?

2005-10-17 Thread Dan Klose
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 found. !!^^!! (1) Finding

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] http://learn.perl.org/ http://learn.perl.org/first-response -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: EAR file

2005-10-13 Thread Dan Klose
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. Regards Hridyesh -- To unsubscribe

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

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 box, my email, and select several

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: lynx =cmd_log=FOO to make a series

HOA idiocy.

2005-10-10 Thread Dan Klose
], small = qw[V P A G C S N D T], tiny = qw[G A C S], ); I have tried with and without the on the keys. This is probably something 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

Re: problem with GD

2005-10-07 Thread Dan Klose
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
we use in DBI etc. I don't think so. I think your . button maybe stuck! HTH Dan. thankX n With warm regards Mayank Ahuja Team Member Tata Consultancy Services Limited Ph:- 044-5816 Cell:- 9283199460 Mailto: [EMAIL PROTECTED] Website: http

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 !BACK TO THE LIST! Hi Mayank, You really need to work this out for yourself. You should try and submit some code so that people can

RE: how to make charts using GD

2005-09-28 Thread Dan Klose
and then type: install GD::Graph and it should all be fine. Hope that is of some use. Dan. And don't be afraid to use Perl modules. Many important modules are already part of your Perl distribution, so you would not have to install them manually, anyways. As for the rest, I'm sure people here

Re: the time a program runs

2005-09-26 Thread Dan Klose
, If you are on a *nix system you 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

Re: Looking for perl scripts to remove ^M

2005-09-25 Thread Dan Klose
ago, I imported an EndNote Library and it was populated with ^M(s). Xavier Noria suggested using: perl -pi -we 's/\015/replace_with/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
). 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 my hair out over this. has anyone ever come across this before? if so, how did you fix it? many thanks dan -- To unsubscribe, e-mail: [EMAIL

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

A better way.

2005-08-02 Thread Dan Klose
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 in advance. Dan

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. Thanks

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 PROTECTED] wrote in message news:[EMAIL

send a HUP signal

2005-07-23 Thread dan
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

wildcard matching

2005-07-22 Thread dan
, 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 returns. thanks for all your help, dan -- To unsubscribe

Custom message formatting callback for Log::Dispatch

2005-07-08 Thread Dan Fish
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 nowadays! == Sample code

route STDOUT to file

2005-06-25 Thread dan
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

\n ^M

2005-06-22 Thread Dan Klose
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

Re: how to append blocks in same file

2005-06-22 Thread Dan Klose
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 the reader. my @blocks = (); my $maxlen

PDF::ReportWriter-0.5 is out

2005-06-14 Thread Dan
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, e-mail: [EMAIL PROTECTED

Re: Text Postioning / Postscript / Enscript - Hylafax

2005-05-13 Thread Dan
-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 the CanIt

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
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
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 unsubscribe, e

placeholder alteration

2005-03-20 Thread Dan
scratching my head real hard now to a point where I think I'm losing hair! 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

  1   2   3   4   5   6   7   8   9   10   >