Re: Calling Perl from C - Problem with DynaLoader

2004-09-23 Thread Peter Scott
ng.perl.misc. At least, there are many such people posting there who I have never seen posting here. -- Peter Scott http://www.perldebugged.com/ *** NEW *** http://www.perlmedic.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://le

Re: simple windows process list

2004-09-21 Thread Peter Scott
ot;\n"; I don't see any tabs there. Try this: print "$pid\t$user\t$proc\n"; > } >} It is better design to have a subroutine that returns the values you want than to print them so close to having figured them out. One day you may want to do something other tha

Re: $ ^ I in place editor

2004-09-17 Thread Peter Scott
27;t be used to accomplish it. >[EMAIL PROTECTED] (Peter Scott) >Take a look at what I wrote before: > -- >Nowhere do you use the contents of @ARGV. In-place edit only works >when you use the diamond operator (<>) for I/O, and you haven't. >So, having defined $^I and se

Re: $ ^ I in place editor

2004-09-16 Thread Peter Scott
se diagnostics; >>use warnings; > >Good! > >>my stps="/usr/local/log/scratchtps"; >> >> open (TP, ">$stps") || die "could not open file:$!"; >>open (TP2, ">$irmt ") || die "could not open f

Re: $ ^ I in place editor

2004-09-16 Thread Peter Scott
t only works when you use the diamond operator (<>) for I/O, and you haven't. So, having defined $^I and set @ARGV, you then need a loop: while (<>) { # Do something with $_ # print something to default filehandle } Whatever you print to the default filehandle inside that loop will go to the new file. -- Peter Scott http://www.perldebugged.com/ *** NEW *** http://www.perlmedic.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: time managing

2004-09-15 Thread NIPP, SCOTT V \(SBCSI\)
"cron" is a Unix utility for running commands in a scheduled manner. You configure the "job" for cron to run it every hour. This means that you never have to worry about the job running regularly because cron manages it. Scott Nipp Phone: (214) 858-1289 E-mail: [

Re: Splicing Hash problem

2004-09-06 Thread Peter Scott
27; => 'AGctgTGTTT', > '3 NO MOTIF' => 'TCCGTGCGCT', > '2 caa' => 'GAAGcaaGGC' > }; my %myNEWhash; $myNEWhash{"1 NO MOTIF"} = delete $myhash{"1 NO MOTIF"}; If you literally mea

Re: (repost) how can i generate 10 unique (non repeating) numbers

2004-07-22 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Absolut Newbie) writes: [snip] >how can i generate 10 unique (non repeating) numbers from a range to put in >the array ? http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=86hds1fa6n.fsf%40blue.stonehenge.c

Re: Dot not string cat?

2004-07-22 Thread Peter Scott
quot;\n";' Global symbol "$i_" requires explicit package name at -e line 1. Execution of -e aborted due to compilation errors. -- Peter Scott http://www.perldebugged.com/ *** NEW *** http://www.perlmedic.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: ${DBI::errstr} vs $DBI::errstr

2004-07-09 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Perl.Org) writes: >On 8 Jul 2004 13:41:28 -0000, Peter Scott wrote >> Also, look at the RaiseError property of DBI connections. I gave up >> referring to DBI::errstr some years ago. > >Looks good, except I think I no

Re: ${DBI::errstr} vs $DBI::errstr

2004-07-08 Thread Peter Scott
to put braces in like that except when necessary to isolate a variable name in interpolation. Also, look at the RaiseError property of DBI connections. I gave up referring to DBI::errstr some years ago. -- Peter Scott http://www.perldebugged.com/ *** NEW *** http://www.perlmedic.com/

Re: Problem installing Net::DNS

2004-07-07 Thread Peter Scott
t;.($self->nameservers)[0]."] did not give answers"; I suspect you had trouble reaching the root nameserver used in the test. -- Peter Scott http://www.perldebugged.com/ *** NEW *** http://www.perlmedic.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Favorite email parser?

2004-06-30 Thread Peter Scott
uggest for parsing email? There are a few of them >out there, and I really don't have the time to try each one out until I find >the one I like the best. :) Check out Email::Simple. Should be quite, er, simple. -- Peter Scott http://www.perldebugged.com/ *** NEW *** http://www.perlmedic.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: open CONSOLE?

2004-06-24 Thread Peter Scott
dles are created anew, not duped. A test shows it: sh-2.05a$ cat bar cat: bar: No such file or directory sh-2.05a$ perl -le 'print "STDOUT"; $x=`ls foo bar 2>&1`; warn "STDERR"; print $x' >foo 2>baz sh-2.05a$ cat foo STDOUT ls: bar: No such file or dir

Re: List as a value of a hash???

2004-06-21 Thread Scott Stearns
; { 'increment' => [ '1', '2', '3' ]

Tie::Gzip

2004-06-17 Thread Damian Scott
I am new to using Perl and found this module out at CPAN to read gzip'ped files, but I have no idea how to use it. Can someone provide a couple of examples to get me started? TIA. -Damian

Re: Exception Handling - Professionally

2004-06-10 Thread Scott Stearns
e > Exception.pm module but is there a standard in the real world for > handling exceptions? If I was assigned to modify some existing Perl > code, what type of x-handling should I expect to see? > > Thanks, Scott Thank you for all your responses. I did a little research and found an

Re: procfarm equivalent

2004-06-10 Thread Peter Scott
so easily. Try Parallel::ForkManager. -- Peter Scott http://www.perldebugged.com/ *** NEW *** http://www.perlmedic.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Exception Handling - Professionally

2004-06-10 Thread Peter Scott
instead. See http://groups.google.com/groups?selm=200406061505.17786.peter%40adpm.de But in this case, if you're already sure it's an object, there's no problem. -- Peter Scott http://www.perldebugged.com/ *** NEW *** http://www.perlmedic.com/ -- To unsubscribe, e-mail: [EMAIL

Exception Handling - Professionally

2004-06-08 Thread Scott Stearns
ling exceptions? If I was assigned to modify some existing Perl code, what type of x-handling should I expect to see? Thanks, Scott -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: using Mail::Sendmail

2004-06-02 Thread Peter Scott
you already sent the mail by calling the sendmail() function. I think you are confusing it with Mail::Send, which IMHO is a better module anyway. >foreach $_ (@ftapes) { >print $_; >#`evmlabel -l st_9840_acs_0 -t 9840S -b$_` >} >close (OUT); >} >My goal is to send an email if

Re: weird math

2004-05-28 Thread Peter Scott
subtracted from that, I get -16.23. perldoc -q decimals -- Peter Scott http://www.perldebugged.com/ *** NEW *** http://www.perlmedic.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Program to scan dictionary for words with letters in a

2004-05-27 Thread Peter Scott
= "good" >> $r = qr/^[god]+$/ >> >> >> then $r would match $word. Can you think of a good work around ? > >Oh... you want one of each letter only, is that it? Oh boy... Nothing in the original request suggests this requirement. There's no reason words

Re: Perl2exe

2004-05-20 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Manish U) writes: >Hi, > >Can any one give me the url where i can get a free version of perl2exe. Consider this instead: http://search.cpan.org/~autrijus/PAR-0.80/lib/PAR.pm -- Peter Scott http://www.perldebugged.com/ *

Re: installing DBI on HPUX

2004-05-10 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Christian Stalp) writes: >Hello, I allready installed gcc but the Makefile calls the HPUX-cc compiler. >(CC = cc ) >How can I tell the system to use the gcc instead of the cc? perl Makefile.PL CC=/usr/local/bin/gcc -- P

Re: DBI/DBD/Oracle Installation

2004-05-06 Thread Peter Scott
$HOME directory, isn't there a >command-line option to force that, or do I have to manually >change the Makefile? You just set PREFIX when making the Makefile: perl Makefile.PL PREFIX=/home/me/perl_modules Best way to get there: perl -MCPAN -e shell CPAN>

Re: Variable "$some_var" will not stay shared

2004-05-06 Thread Peter Scott
n variable. This problem can usually be solved by making the inner subroutine anonymous, using the "sub {}" syntax. When inner anonymous subs that reference variables in outer subroutines are called or refer- enced, they are automatically rebound to the current values of such variables. -- Peter Scott http://www.perldebugged.com/ *** NEW *** http://www.perlmedic.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Read From Socket

2004-05-06 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jenda Krynicky) writes: >From: [EMAIL PROTECTED] (Peter Scott) >> What are you trying to do that Net::SMTP won't do for you? >> Or Mail::Sender or Mail::Sender, for that matter? > >Looks you really like Mail::Sen

Re: Read From Socket

2004-05-05 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Roman Baeriswyl) writes: >Hey Guys > >I'm trying to read an answer from an SMTP server via socket. What are you trying to do that Net::SMTP won't do for you? Or Mail::Sender or Mail::Sender, for that mat

Re: file renaming util in perl

2004-04-30 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes: >[EMAIL PROTECTED] (Peter Scott) writes: > >> In article <[EMAIL PROTECTED]>, >> [EMAIL PROTECTED] writes: >>>Before starting to write my script designed to make filename changing >>>

Re: file renaming util in perl

2004-04-30 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes: >Before starting to write my script designed to make filename changing >easier I'd like to ask how to create an editable command line inside a >perl script? [snip] Term::ReadLine -- Peter Scott http://www.perld

Re: undefined subroutine with recursives uses

2004-04-27 Thread Peter Scott
t;use A" statement in B won't help. Solution: hoist the subroutine definitions that B needs from A up above the "use B" statement, or predeclare them with stubs. -- Peter Scott http://www.perldebugged.com/ *** NEW *** http://www.perlmedic.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: run a function every so often *inside* the script automatically...

2004-04-26 Thread Peter Scott
d use localtime each time but hear me out... > > >my $now = localtime; >my $job = $icron->job('Now',sub { $now = localtime; }, 1); > >print "$now\n"; # Sat Apr 24 00:57:03 2004 >sleep(3); # or your long running code here ... >print "$now\n";

Re: multiplexed TCP server with client socket handles stored in hash

2004-04-21 Thread Peter Scott
I retrieve the client IP after or from the "$connect = >$listen_socket->accept();" statement? I've seen it done with other connect >and bind methods. $connect->peerhost; perldoc IO::Socket for this and other methods. -- Peter Scott http://www.perldebugged.com/ *** NEW *

Simple regex

2004-04-15 Thread scott . e . robinson
How can I write a regular expression to keep the part of a string that's between a pair of square braces? Here's a sample line: Updating Wellbore Set Keys: [wlbr_id = 1234567890, data_provider_code = MTBL, welltype = OIL] Thanks in advance for your help! Scott Scott E. Robinson SWAT

Re: Antwort: Re: book suggestion for atypical beginner ['securiQ.Watchdog':

2004-04-07 Thread Peter Scott
explained further in perldiag. Or you can put "use diagnostics" in your program to save you the trouble of looking them up. -- Peter Scott http://www.perldebugged.com/ *** NEW *** http://www.perlmedic.com/ -- 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] last day of a month

2004-04-06 Thread Peter Scott
you of being off-topic. A 5-second search gave me the newsgroup comp.unix.shell. I highly recommend Google for such discoveries, it is worth knowing how to use it. So my idea is to ask in comp.unix.shell. -- Peter Scott http://www.perldebugged.com/ *** NEW *** http://www.perlmedic.com/

Re: CPAN install from a local directory of module sources

2004-04-04 Thread Peter Scott
er to work with when I don't need to specify particular versions of modules, which is rare anyway. I usually split the modules between two bundles, one of modules whose installations ask questions, and one which doesn't. Then I can run the first one, get the questions out of the way, and

Re: Using $_ in a function if no argument is passed

2004-04-03 Thread Peter Scott
= $_; >} Same problem as the last suggestion. sub test { my $arg = (@_ ? shift : $_); } -- Peter Scott http://www.perldebugged.com/ *** NEW *** http://www.perlmedic.com/ -- 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 of the Month Club (end Of MARCH Edition)

2004-03-28 Thread Peter Scott
sion; people who have just started learning Perl should not be led to think that so simple a matter as variable declaration should be so fraught with complexity and contention. I suggest you take your article to comp.lang.perl.misc and ask whether people there think it is appropriate

Re: "perl -i..." reminder?

2004-03-20 Thread Peter Scott
sh @ARGV, $File::Find::name } } Yes, you can do it without either populating the whole array before processing any of the files, or without reading the whole contents of each file in at once; I just wanted to keep this as simple as possible. -- Peter Scott http://www.perldebugged.com/ *** NEW **

Re: Perl -d

2004-03-16 Thread Peter Scott
perl5db.pl). This is just as well, the debugger is a sandbox. The same goes for use warnings, but if you use the -w or -W flags instead, they are non-lexical and will extend to the debugger. Try the p command on an undefined value some time with -w enabled and you'll see a quite verbos

Re: perl -d / apache server debug

2004-03-13 Thread Peter Scott
"perl -d" would not work me >very well? Am I right? ptkdb supports remote debugging hooks that will do what you want. Perl programs intended to run behind a web server should be developed so that they can be tested from the command line, so you don't have to ask for this help in t

sorting hash list for CGI Form

2004-03-09 Thread Scott Taylor
mill','_blank'), "Source Mill:  ", popup_menu('millid', [EMAIL PROTECTED], '', \%SrcIDs),p, ... So, you see I want to link @Sources with the keys of %SrcIDs, but what I want is to sort the hash alphabetically by the values of %SrcIDs. Please

Re: Inserting strings into a file

2004-03-02 Thread Peter Scott
rpolated, which >I don't want. Just backslash it: printf FILE "\e%-12345X [EMAIL PROTECTED] JOB NAME = $ARGV[1] \n"; -- Peter Scott http://www.perldebugged.com/ *** NEW *** http://www.perlmedic.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

Re: Browsing and capturing with perl in X

2004-02-24 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Kevin Old) writes: >On Tue, 2004-02-24 at 11:19, Peter Scott wrote: >> I haven't used these modules, but they look like they'll do the >> job for you: >> >> http://search.cpan.org/~mfrankl/HT

Re: Browsing and capturing with perl in X

2004-02-24 Thread Peter Scott
.org/~mfrankl/HTML-HTMLDoc-0.07/lib/HTML/HTMLDoc.pm http://search.cpan.org/~mfrankl/HTML-HTMLDoc-0.07/lib/HTML/HTMLDoc/PDF.pm Just fetch the HTML using LWP::Simple or similar and then those modules should do the rest. -- Peter Scott http://www.perldebugged.com/ *** NEW *** http//www.perlmedic.com/ -

Re: Could I put commands in a variable

2004-02-20 Thread Peter Scott
it. I've not used a goto LABEL construct since I was writing BASIC programs 20 years ago (unless you count assembler, which you shouldn't). -- Peter Scott http://www.perldebugged.com/ *** NEW *** http//www.perlmedic.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: Re: RE: capture a website and process its data

2004-02-19 Thread scott . e . robinson
Great job, Rob! Thanks for the good code! Quite a timesaver. Scott Scott E. Robinson SWAT Team Data Mgt Practices & Operations (DMPO) RR-690 -- 281-654-5169 EMB-2813N -- 713-656-3629 Safety is never an accident - Forwarded by Scott E Robinson/U-Houston/ExxonMobil on 02/19/04 09:2

Re: Error: Use of uninitialized value in print

2004-02-03 Thread Peter Scott
thout the defined() test that line would be erroneously skipped. <> returns undef when there is no more input, hence that is what we must test for. And since we need to do that so often, Perl adds the shortcuts so we can type just: while (<>) to get what we want. --

Re: Use and Require

2004-01-30 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Mallik) writes: >Dear Perl Gurus, > >What is the difference between Use and Require. use Foo; is equivalent to: BEGIN { require Foo; Foo->import; } --

Re: Automated script to connect to a web site and change the Password

2004-01-29 Thread Peter Scott
t. > >Please suggest any idea/code available. http://search.cpan.org Mail::Webmail::Yahoo WWW::Mechanize -- Peter Scott http://www.perldebugged.com/ *** NEW *** http//www.perlmedic.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

Re: Is it necessary to set the headers when using LWP::UserAgent->post

2004-01-24 Thread Peter Scott
you can add headers explicitly, although it is rarely necessary. The documentation for HTTP::Request says how. What header is it you want to add? -- Peter Scott http://www.perldebugged.com/ *** NEW *** http//www.perlmedic.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

Re: use strict and filehandles

2004-01-22 Thread Peter Scott
\*MESSAGE); What's much easier than learning what the heck a glob ref is, though, is using a lexical filehandle: open my $message, $datafile or die... $page = CGI->new($message); which will work on any Perl from 5.6.0 on. -- Peter Scott http://www.perldebugged.com/ *** NEW *** http//www.perlmedic.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: CPAN question

2004-01-20 Thread Peter Scott
at my CPAN >installation is looking for is down and I can't figure out how to change it. perl -MCPAN -e shell o conf urllist push http://new.mirror o conf commit perldoc CPAN for more -- Peter Scott http://www.perldebugged.com/ *** NEW *** http//www.perlmedic.com/ -- To unsubscri

for loop not ending

2004-01-19 Thread Damian Scott
Ok. Here's my situation. I am modifying a Perl script that was created some time ago and am learning Perl on kind of a "trial by fire" basis (with a couple of good books). The problem was first brought to my attention that we still had old log files greater than 60 old. The gziplog Perl scri

Re: Dumping values of all vars

2004-01-15 Thread Peter Scott
interactive way of doing this. -- Peter Scott http://www.perldebugged.com/ *** NEW *** http//www.perlmedic.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: check whether file is ascii or ebcdic

2004-01-14 Thread Peter Scott
presence of a set 8th bit doesn't rule out ASCII. I suggest you do some tests on samples of the kinds of files you'll be dealing with and print out the percentage of characters they contain that has the 8th bit set, and look at the ASCII vs EBCDIC ones. Hopefully a clear pattern

Re: Perl mapping solution

2004-01-10 Thread Peter Scott
ates (apparently shifted if necessary to avoid dealing with wraparound). I was miffed to find that the data has not been updated in over 3 years and does not include Victoria.pm, which I started in that period :-( -- Peter Scott http://www.perldebugged.com/ *** NEW *** http//www.perlmedic.com/ --

Re: Image Magick

2004-01-09 Thread Scott Taylor
At 11:02 AM 01/09/2004, Scott Taylor wrote: At 10:28 AM 01/09/2004, Wiggins d Anconia wrote: http://www.ImageMagick.org/www/perl.html Check the above for an example of how to print an image to a filehandle, in your case you want the default STDOUT I've been all over that page, bu

Re: Image Magick

2004-01-09 Thread Scott Taylor
At 10:28 AM 01/09/2004, Wiggins d Anconia wrote: > Hello all, > > I am trying to use Image::Magick to resize a JPEG. This routine works to > display the full size image from a blob in my Firebird database: > > while ( my ($PixData ) > = $sth->fetchrow ) { > print h

Image Magick

2004-01-09 Thread Scott Taylor
nt header('image/jpeg'); print $PixDisp; } I get this: Image::Magick=ARRAY(0x82fdee8) instead of an image. Can anyone see my obvious mistake? Cheers. Scott. -- 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 debuggers

2004-01-08 Thread Peter Scott
the customary trace/inspect tool into any device that helps you detect or prevent bugs. So I will take the liberty of saying that it was my intention to enumerate such devices in the book "Perl Debugged" (see URL below). Plus, it has cute cartoons :-) -- Peter Scott http://

Re: Hacks via Slow regular expressions

2004-01-04 Thread Peter Scott
://perl.plover.com/yak/regex/samples/slide065.html which should be enough to explain it for you. -- Peter Scott http://www.perldebugged.com/ *** NEW *** http//www.perlmedic.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

modify JPEG on the fly

2003-12-30 Thread Scott Taylor
ill convert it from a 640 X 480 @ 100% JPEG to 160 x 120 @ 30% JPEG. Any ideas? Cheers. -- Scott -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Calling another perl file

2003-12-20 Thread Peter Scott
ing backticks: sub run_cmd { my $cmd = shift; my $args = shift || ''; my @output = `$cmd $args 2>&1`; $? < 0 and return "ERROR: problem running $cmd with $args: $!"; [ grep /\S/, map { chomp; $_ } @output ]; } The only reason I left $cmd and $args separate is

Re: debugger

2003-12-20 Thread Peter Scott
ands for setting breakpoints or doing anything else you like in a file and execute it whenever you like. Just list the breakpoints and watchpoints and turn them into the appropriate commands (a simple script will automate that if you need). -- Peter Scott http://www.perldebugged.com/ *** NEW

Re: LDAPS and HTTPS not working with Unix

2003-12-13 Thread Peter Scott
Make sure you have Crypt::SSLeay installed. -- Peter Scott http://www.perldebugged.com/ *** NEW *** http//www.perlmedic.com/ -- 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 do I set up bidirectional pipes over a network connection?

2003-12-10 Thread Peter Scott
nt to be able to >do something like $ ./distribute.pl --file and have it sent to all >boxen's ~/distributed/ directory. Some reason you can't use rsync? -- Peter Scott http://www.perldebugged.com/ *** NEW *** http//www.perlmedic.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: 64 bit Perl memory test...

2003-12-04 Thread NIPP, SCOTT V (SBCSI)
Very interesting... Running this script it dies at the 800MB attempt. However, watching this process in top, memory usage is actually double the amount that is being tested. In top, the last memory amount prior to it dying is 1400MB. Scott Nipp Phone: (214) 858-1289 E-mail: [EMAIL

RE: 64 bit Perl memory test...

2003-12-04 Thread NIPP, SCOTT V (SBCSI)
Nope... No /dev/zero either in 11i. Scott Nipp Phone: (214) 858-1289 E-mail: [EMAIL PROTECTED] Web: http:\\ldsa.sbcld.sbc.com -Original Message- From: Bakken, Luke [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 1:25 PM To: NIPP, SCOTT V (SBCSI); [EMAIL

RE: 64 bit Perl memory test...

2003-12-04 Thread NIPP, SCOTT V (SBCSI)
Will this tell me how much memory is used at the point of failure? Scott Nipp Phone: (214) 858-1289 E-mail: [EMAIL PROTECTED] Web: http:\\ldsa.sbcld.sbc.com -Original Message- From: david [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 1:11 PM To: [EMAIL

RE: 64 bit Perl memory test...

2003-12-04 Thread NIPP, SCOTT V (SBCSI)
Unfortunately, there is no /dev/random in HP-UX. Scott Nipp Phone: (214) 858-1289 E-mail: [EMAIL PROTECTED] Web: http:\\ldsa.sbcld.sbc.com -Original Message- From: Bakken, Luke [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 9:36 AM To: NIPP, SCOTT V (SBCSI

64 bit Perl memory test...

2003-12-04 Thread NIPP, SCOTT V (SBCSI)
Perl test script to use memory until Perl reaches it's memory limit. This will help me to know when I have things right so I don't have to keep going back to the end users and tell them "OK, try it now". Thanks in advance for any help. Scott Nipp Phone: (214) 858-

Compile help...

2003-12-04 Thread NIPP, SCOTT V (SBCSI)
d: writing past 2GB failed: process limits? Thanks again. Scott Nipp Phone: (214) 858-1289 E-mail: [EMAIL PROTECTED] Web: http:\\ldsa.sbcld.sbc.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Is it possible to send / receive cookies on an image

2003-11-19 Thread Peter Scott
ie => $cookie); Putting 'em together: use CGI qw(header cookie); $cookie = cookie(...); print header(-cookie => $cookie, -type=>'image/gif'); Search through the CGI.pm documentation for the "..." and take more questions to beginn

Re: mech-dump...

2003-11-16 Thread Peter Scott
+my $response = $mech->get( $uri, @args); $response->is_success or die "Can't fetch $uri\n", $response->status_line, "\n"; $mech->is_html or die "$uri returns type \"", $mech->ct, "\", not \"text/html\"\n"; -- Peter Scott http://www.perldebugged.com/ *** NEW *** http//www.perlmedic.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Perl memory utilization question...

2003-11-13 Thread NIPP, SCOTT V (SBCSI)
n I really have is if this is indeed the parameter, it is limited to slightly under 4GB and the user needs approximately 5GB. So, can Perl use 64bit memory, which has an insanely huge limit so this user can run this job? Any feedback is most appreciated. Thanks. Scott Nipp Phone: (214) 858-1

Top-posting

2003-11-05 Thread scott . e . robinson
Lotus Notes adds a header to the top of the note which I *can* cut and paste to the bottom. It does not do the indentation with '>' characters that seems to be preferred. Thanks, Scott Scott E. Robinson SWAT Team UTC Onsite User Support RR-690 -- 281-654-5169 EMB-2813N --

Re: Training in the Middle and Far East

2003-11-04 Thread scott . e . robinson
- not as a prerequisite for posters, but as a way to help them out. (Of course, I'm not one to talk -- my grounding in Computer Science is so rusty people on this list often don't know I have it...) (And, sorry for the top-posting. I haven't figured out how to fix that!) Thanks, Scot

Splitting OR Regex

2003-10-30 Thread Scott, Joshua
doing this? What I have currently is a regex that splits out the entire line, but certain fields have changed so my original code doesn't work as well. Thank you very much! Joshua Scott == NOTICE - This communication ma

Re: Corrupted Data

2003-10-30 Thread Peter Scott
;; close(OLD) or die "Can't Close Old: $!"; rename($old,$new); ^D syntax error at - line 6, near ",>" - had compilation errors. That's twice now. I'm disinclined to help since I will doubt that whatever you post is what's really giving you the problem, because you evidently don't want to show us the real code. -- Peter Scott http://www.perldebugged.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Corrupted Data

2003-10-30 Thread Peter Scott
t;; > flock NEW, 2; > while () { [snip] Why don't you post the actual code since this obviously isn't it... -- Peter Scott http://www.perldebugged.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

What's the Perl driver for MSAccess?

2003-10-29 Thread scott . e . robinson
Can anyone tell me what the Perl driver for MSAccess is called and how to use it to read a table? Thanks, Scott Scott E. Robinson SWAT Team UTC Onsite User Support RR-690 -- 281-654-5169 EMB-2813N -- 713-656-3629 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

RE: Visual Perl

2003-10-24 Thread NIPP, SCOTT V (SBCSI)
You are looking for the TK module for Perl. Perl/TK allows you to create windows and everything that goes along with them. Scott Nipp Phone: (214) 858-1289 E-mail: [EMAIL PROTECTED] Web: http:\\ldsa.sbcld.sbc.com -Original Message- From: Ned Cunningham [mailto:[EMAIL

Re: Perl Debugger

2003-10-11 Thread Peter Scott
x27;R' command works by storing that information in environment variables. You could hack it to save the information in a file as well, and look for that file on startup. -- Peter Scott http://www.perldebugged.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: easiest `cat` in perl

2003-10-02 Thread Peter Scott
ocation/of/header.incl"; >> open (FH, "$file") or die "Cannot open file $file $!"; >> print while(); >> close(FH); >> -- > >or simply: > >print ; Reasonable for short files, wastes memory for big ones. This file opening looks like too much work. I prefer: { local @ARGV = "/location/of/header.incl"; print while <>; } -- Peter Scott http://www.perldebugged.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: convert UNIX timestamp

2003-10-01 Thread Hall, Scott
Mickalo, perldoc -f localtime perldoc -f gmtime > perl -e 'print scalar localtime (1064616515), "\n"' Fri Sep 26 18:48:35 2003 Scott -Original Message- From: Mike Blezien [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 10:08 AM To: [EMAIL PROTECTED

Basic question...

2003-09-25 Thread NIPP, SCOTT V (SBCSI)
daemon. The other way I see doing this is to write each section of code as a subroutine within the daemon program and have that called. Any suggestions on which of these would be better? More correct? Etc.? Thanks in advance for the help yet again. Scott Nipp Phone: (214) 858-1289 E-mail

RE: Writing a daemon in Perl...

2003-09-24 Thread NIPP, SCOTT V (SBCSI)
eletes the file afterwards. If there are no files, then the "daemon" simply sleeps for 30 seconds before looking again. This seems like a very simple way of attacking the issue. Any ideas fore or against? Scott Nipp Phone: (214) 858-1289 E-mail: [EMAIL PROTECTED] Web: http:

Writing a daemon in Perl...

2003-09-24 Thread NIPP, SCOTT V (SBCSI)
vance. Scott Nipp Phone: (214) 858-1289 E-mail: [EMAIL PROTECTED] Web: http:\\ldsa.sbcld.sbc.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Deleting a line that contains certain text

2003-09-08 Thread Scott R. Godin
David Wall wrote: > > > --On Saturday, September 06, 2003 7:45 PM -0400 perlwannabe > <[EMAIL PROTECTED]> wrote: > >> OK, I have a new problem. I need to delete an entire line that contains >> certain text. I have done an extensive search and had no luck finding an >> adequate answer. Yes, I

Re: Does anyone gets duplicated copies of a message all the time?!

2003-09-08 Thread Scott R. Godin
Ramprasad A Padmanabhan wrote: > Nelson Wong wrote: >> Hi all, >> >> I always get three identical copies of a message all the time, >> therefore, I just wonder if anyone has the same situation as mine! >> >> Thanks! >> >> BTW, it is a great ML!!! Happy knowledge sharing! >> > No, But reading t

RE: $| in module

2003-09-04 Thread Peter Scott
As a way of testing its effect on a lot of scripts you have certainly found an effective way. I would hesitate to put it into production unless the module was called something like Foo::Bar::GloballyUnbuffered, or at least its documentation said at the beginning, "*** WARNING, THIS MODULE SETS $| ***" This sort of action at a distance is generally considered an unfriendly interface. I believe in leaving the setting of variables like $| to the calling program. But if you know what you're doing, have at it. -- Peter Scott http://www.perldebugged.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: $| in module

2003-09-04 Thread Peter Scott
is. Perhaps you could share what it is you're doing that makes you think you do? -- Peter Scott http://www.perldebugged.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: What's the command to find the name of the file being executed?

2003-09-03 Thread scott . e . robinson
[EMAIL PROTECTED] wrote: > What's the simple Perl command to find the name of the file from > which the Perl program is being executed? It was recently on this > newsgroup but I can't find the article now. > > Thanks, > > Scott > > Scott E. Robinso

What's the command to find the name of the file being executed?

2003-09-03 Thread scott . e . robinson
What's the simple Perl command to find the name of the file from which the Perl program is being executed? It was recently on this newsgroup but I can't find the article now. Thanks, Scott Scott E. Robinson SWAT Team UTC Onsite User Support RR-690 -- 281-654-5169 EMB-2813N -- 71

Re: -w vs. use warnings

2003-09-01 Thread Peter Scott
ot;. Note: I may be slightly "what crack >is he smoking?" on my version numbers - it's been a while. 5.6.0, not 5.004_05. -- Peter Scott http://www.perldebugged.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Date::Calc Module Error

2003-08-29 Thread Scott Burks
follows in the piece of code that calls the modules that produces the error: use Date::Calc qw(Add_Delta_Days); Does anyone have an idea?? And thanks in advance. ___ Scott Burks – Systems and Network Administrator Trust Company of America / Gemisys Financial Services

RE: Blob to JPEG

2003-08-27 Thread Scott Taylor
At 02:41 PM 08/27/2003, Dan Muey wrote: > > > use CGI qw(header); > > use DBI; > > my $dbh = ... > > print header('image/jpeg'); > > my($jpegguts) = $dbh->selectrow_array('SELECT jpegguts FROM > > myimg > > WHERE id = 35'); > > print $jpegguts; > >

<    1   2   3   4   5   6   7   8   9   10   >