RE: storage types for big file

2023-05-30 Thread Tom Reed
Hello I am not sure, what does this mean? not changing the line length? but in most case I need to change the length of a line. Thanks again. Tom > That sounds positive. You should be able to avoid most of the overhead of > writing the file. The general idea i

RE: storage types for big file

2023-05-30 Thread Tom Reed
> Do you have the option to "seek" to the correct place in the file to make > your changes? For example, perhaps: > > - Your changes are few compared to writing out the whole file > - Your changes do not change the size of the file (or you can pad line-end > with spaces) > 1. each time just ch

storage types for big file

2023-05-30 Thread tom
Hello I have a big file after making changes in ram I need to write it back to disk. I know for text file store it's written line by line. But is there any better storage type for high performance read/writing? maybe binary? Thank you. -- Sent from https://dkinbox.com/ -- To unsubscribe,

json to disk

2023-05-22 Thread Tom Reed
Hello list, How can I sync json object to disk? so that other processes (or next startup) can use this json. Thanks. -- sent from https://dkinbox.com/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

RE: Excel Sheet Gen Code gives error

2013-07-15 Thread Tom, Jentil Kuriakose
Thanks Pritish/jing! From: Pritish Pattanaik [mailto:pattanaikprit...@gmail.com] Sent: Monday, July 15, 2013 4:47 PM To: Tom, Jentil Kuriakose; beginners@perl.org Subject: Re: Excel Sheet Gen Code gives error Hello Jentil, Have you installed SpreadSheet::WriteExcel module ? , if no => t

Excel Sheet Gen Code gives error

2013-07-15 Thread Tom, Jentil Kuriakose
Hi, I have written simple EXCEL sheet gen PEARL code: #!/usr/bin/perl use strict; use Spreadsheet::WriteExcel; my $workbook = Spreadsheet::WriteExcel->new("simple.xls"); my $SUMMARY = $workbook->add_worksheet("SUMMARY"); $SUMMARY->write(0, 0,

Re: GOODBYE from beginners@perl.org

2010-08-12 Thread tom arnall
eWVYhen0GBqknrx9c= > Received: by 10.151.133.4 with SMTP id k4mr1392600ybn.159.1281676490585; > Thu, 12 Aug 2010 22:14:50 -0700 (PDT) > Return-Path: > Received: from tosh2.localnet (70-6-161-53.pools.spcsdns.net [70.6.161.53]) > by mx.google.com with ESMTPS id > p8sm24302

Re: Merging YAML nodes/streams

2010-05-20 Thread Tom
is better to merge the top level/hash array and have the previous value over written. Then new values are appended. For those interested the solution was very easy: CODE my %merged = {}; sub merge { while (my $ref = shift) { my $k; my $v; # print $ref;

Re: Merging YAML nodes/streams

2010-05-14 Thread Tom
On Fri, May 07, 2010 at 12:44:01PM -0400, Bob McConnell wrote: > From: Tom > > > I'm having trouble merging YAML streams. > > > > Basic premise is that I load multiple YAML files and I want to combine > > the result. There may be common elements within subsequ

Merging YAML nodes/streams

2010-05-07 Thread Tom
could merge them? Cheers, Tom -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: splitting and replacing characters

2009-11-09 Thread tom smith
On Mon, Nov 9, 2009 at 8:30 PM, tom smith wrote: > > On Mon, Nov 9, 2009 at 10:56 AM, Jim Gibson wrote: > >> However, here is a shortened form using regular expression: >> >> my @output = $line =~ m{ \G (..) .. }gx; >> >> Verify how either of these wor

Re: splitting and replacing characters

2009-11-09 Thread tom smith
On Mon, Nov 9, 2009 at 10:56 AM, Jim Gibson wrote: > However, here is a shortened form using regular expression: > > my @output = $line =~ m{ \G (..) .. }gx; > > Verify how either of these works when you do not have a multiple of 2 > characters in your input. > > It has other problems too: use

Re: can I wipe cpan off my computer?

2009-11-08 Thread tom smith
On Sun, Nov 8, 2009 at 12:39 AM, tom smith wrote: > > On Sat, Nov 7, 2009 at 7:57 AM, Shawn H Corey wrote: > >> tom smith wrote: >> > I actually read something that said not to install Bundle::CPAN. Then >> > sometime later I tried to install my first modu

Re: can I wipe cpan off my computer?

2009-11-07 Thread tom smith
On Sat, Nov 7, 2009 at 7:57 AM, Shawn H Corey wrote: > tom smith wrote: > > I actually read something that said not to install Bundle::CPAN. Then > > sometime later I tried to install my first module, and in the fog of > > trying everything possible to get cpan to insta

Re: can I wipe cpan off my computer?

2009-11-07 Thread tom smith
On Sat, Nov 7, 2009 at 6:27 AM, Shawn H Corey wrote: > tom smith wrote: > > On Fri, Nov 6, 2009 at 9:34 AM, Shawn H Corey > <mailto:shawnhco...@gmail.com>> wrote: > > I think the OP is talking about the new modules that don't always > play > >

Re: Change tag case

2009-11-07 Thread tom smith
On Sat, Nov 7, 2009 at 2:45 AM, Ramesh, Marimuthu wrote: > > > Hi, > > > > I have some 3000 sgml files, where I need to change the tag case from > upper case to lower case. > > > > Example: Change This is an image to id="IMG1">This is an image. > > > > Note that the tag name and the attribute nam

Re: foreach loop

2009-11-06 Thread tom smith
On Fri, Nov 6, 2009 at 6:48 PM, John W. Krahn wrote: > tom smith wrote: > >> On Mon, Nov 2, 2009 at 5:10 AM, John W. Krahn wrote: >> >> Philip Potter wrote: >>> >>> 2009/11/2 Thomas Bätzler : >>>> >>>> while( my $line = <

can I wipe cpan off my computer?

2009-11-06 Thread tom smith
Hi, Is there an easy way to wipe cpan off my computer? I would like to try a fresh install to see if that cures all the problems I've had with cpan. So far I can't install any modules with cpan. The latest errors are: $ sudo perl -MCPAN -e shell Password: cpan shell -- CPAN

Re: must satisfy _unknown_ number of regexp patterns

2009-11-06 Thread tom smith
On Fri, Nov 6, 2009 at 2:04 AM, tom smith wrote: > > > On Fri, Nov 6, 2009 at 12:15 AM, John W. Krahn wrote: > >> Michael Alipio wrote: >> >>> Hi, >>> >> >> Hello, >> >> >> if I have a script that accepts any combination

Re: must satisfy _unknown_ number of regexp patterns

2009-11-06 Thread tom smith
On Fri, Nov 6, 2009 at 12:15 AM, John W. Krahn wrote: > Michael Alipio wrote: > >> Hi, >> > > Hello, > > > if I have a script that accepts any combination of the 5 or maybe even >> more options, say, option1, option2, option3... >> >> >> Now, after collecting the options, for each option, there

Re: can't post to perl.beginners

2009-11-03 Thread tom smith
On Tue, Nov 3, 2009 at 12:51 PM, Bob goolsby wrote: > Um -- this one got through. What kind of error message did you > receive from one of the posts that didn't go through? > > > B > > On Mon, Nov 2, 2009 at 9:40 PM, Charles DeRykus wrote: > > Hello, > > > > I subscribed to perl.beginners via G

Re: Problem about substitution..

2009-11-03 Thread tom smith
On Tue, Nov 3, 2009 at 4:33 PM, tom smith wrote: > Thanks for the tips! More comments below. > I saw it written the other way somewhere, and I thought it looked cleaner. > I'll do it your way from now on. > > >> >> if ($line =~ /\((.*?)\)/) { &g

Re: tried to install my first module (Mac OSX 10.4.11)

2009-11-03 Thread tom smith
On Mon, Nov 2, 2009 at 3:47 PM, Jeremiah Foster wrote: > > On Nov 2, 2009, at 20:38, tom smith wrote: > > On Mon, Nov 2, 2009 at 8:02 AM, Peter Scott wrote: >> >> On Mon, 02 Nov 2009 04:25:18 -0700, Tom Smith wrote: >>> >>> I believe that your HTML::P

Re: Problem about substitution..

2009-11-03 Thread tom smith
Thanks for the tips! More comments below. On Tue, Nov 3, 2009 at 4:10 AM, John W. Krahn wrote: > tom smith wrote: > >> On Mon, Nov 2, 2009 at 7:41 PM, Remy Guo wrote: >> >> i've got problem when trying to perform a substitution. >>> >>&g

Re: How do I pick one random element from an array?

2009-11-03 Thread tom smith
On Tue, Nov 3, 2009 at 12:11 AM, Majian wrote: > Hi ,all : > > I want to know if there is a way in which I can randomnize(?) the content > in > an array. > > In this example : > > my @array = ('uriel', 'daniel', 'joel', 'samuel'); > > Now what I want is create a process so every time I print the

Re: Problem about substitution..

2009-11-03 Thread tom smith
On Mon, Nov 2, 2009 at 7:41 PM, Remy Guo wrote: > hi folks, > i've got problem when trying to perform a substitution. > > the text file i want to process is like this: > ... > XX { > ABDADADGA > afj*DHFHH > } (a123) > XXDFAAF { > af2hwefh > fauufui > } (b332) > ... > > i want to match the

Re: Learning Perl Student Workbook

2009-11-02 Thread tom smith
On Mon, Nov 2, 2009 at 10:36 AM, Telemachus wrote: > On Mon Nov 02 2009 @ 9:33, Parag Kalra wrote: > > Hey Folks, > > > > This thread was about book - 'Learning Perl Student Workbook' and not the > > book - 'Learning Perl' > > > > So is there a way we can buy genuine/official/legal ebook version

Re: suggestion for FAQ

2009-11-02 Thread tom smith
On Mon, Nov 2, 2009 at 12:35 PM, Paul Johnson wrote: > On Mon, Nov 02, 2009 at 10:59:09AM -0500, Uri Guttman wrote: > > >>>>> "ts" == tom smith writes: > > > > ts> Hi, > > ts> Nowhere in the FAQ does it list the address to which you

Re: Regex to array woes

2009-11-02 Thread tom smith
On Mon, Nov 2, 2009 at 7:54 AM, Brent Clark wrote: > Hiya > > I was hoping that someone would be kind to help me. > > I have a string like so : > > Haresources : 10.203.4.5, Interfaces : 10.203.4.5 10.203.4.7 > > Im trying to get the ip's after Interfaces into an array, but for the likes > of me,

Re: tried to install my first module (Mac OSX 10.4.11)

2009-11-02 Thread tom smith
On Mon, Nov 2, 2009 at 8:02 AM, Peter Scott wrote: > On Mon, 02 Nov 2009 04:25:18 -0700, Tom Smith wrote: > > base/message-charset.t 1/21 Can't locate > > auto/HTML/Parser/utf8_mode.alin @INC (@INC contains: ../blib/lib > > ../blib/arch ../. > > /System/

Re: tried to install my first module (Mac OSX 10.4.11)

2009-11-02 Thread tom smith
On Mon, Nov 2, 2009 at 5:36 AM, Shameem Ahamed wrote: > > I think, it is installed successfully. > > Please run the below script to make sure that it is installed. > > use LWP::Simple; > > print "LWP/Simple.pm is installed in   $INC{'LWP/Simple.pm'} \n"; > $ perl --version This is perl, v5.8.6 bu

Re: tried to install my first module (Mac OSX 10.4.11)

2009-11-02 Thread tom smith
On Mon, Nov 2, 2009 at 3:45 AM, Shameem Ahamed wrote: > Tom, > > The make test it self returned error. > > So the problem is not with the cpan. Please check you have all the > dependencies met. You can paste the make test results here. It will show the > exact dependency err

Re: tried to install my first module (Mac OSX 10.4.11)

2009-11-02 Thread tom smith
On Mon, Nov 2, 2009 at 3:45 AM, Shameem Ahamed wrote: > Tom, > > The make test it self returned error. > > So the problem is not with the cpan. Please check you have all the > dependencies met. You can paste the make test results here. It will show the > exact dependency err

tried to install my first module (Mac OSX 10.4.11)

2009-11-02 Thread tom smith
1) I did: $ sudo cpan which asked me a lot of questions. I accepted the defaults. 2) Then as described here: http://sial.org/howto/perl/life-with-cpan/macosx/ I did: cpan> o conf makepl_arg "INSTALLBIN=/usr/local/bin INSTALLSCRIPT=/usr/local/bin" cpan> o conf commit 3) Then I did: cpan>

suggestion for FAQ

2009-11-02 Thread tom smith
Hi, Nowhere in the FAQ does it list the address to which you can send your beginning programming questions. The FAQ lists the address for subscribing: beginners-subscr...@perl.org But the FAQ doesn't list the email address to which you can send your questions. For experienced list readers, it

Re: algorithm permute

2008-11-17 Thread Tom Phoenix
ted output to a file from 2 terminals. There > are lot of differences. PERL5LIB, perhaps? You can use that environment variable to try out a module without installing it "for real". Another one to check is PATH; you could be using a different perl binary without realizing it. Hope th

Re: if condition question

2008-10-16 Thread Tom Yarrish
I thought I had a feeling of déjà vu. Tom -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

How to extract the Destination address from a UDP package

2008-10-02 Thread Tom
sorting to the RAW packet format. As always any help is greatly appreciated. Thanks Tom -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Struggling with a regex

2008-08-04 Thread Tom Yarrish
} I'm basically working on getting the regex, then I'm going to incorporate it into a program to pull out the TAP0SMITHJ stuff and put it in another file. Thanks, Tom -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAkiXdHQACgkQZWzkfeDiTw5hZgCdFOWLfu6eQAGsXU

Re: Having trouble with cpan

2008-07-22 Thread Tom Phoenix
shell like us old timers used to do. Somebody around here probably still remembers how to run a Makefile.PL from the command line Or you can type "perldoc perlmodinstall" at the command line and read about it. Good luck with it! --Tom Phoenix Stonehenge Perl Training -- To unsubscrib

Re: In List1 but not in List2

2008-03-26 Thread Tom Phoenix
On Wed, Mar 26, 2008 at 11:08 AM, <[EMAIL PROTECTED]> wrote: > How do I mod the code to function as is with two args (perlscr > list1.txt list2.txt) > or accept stdin as data_file when only one arg is given? (cat > list1.txt | perlscr list2.txt) First off, I must not fail to induct you into

Re: In List1 but not in List2

2008-03-26 Thread Tom Phoenix
print $item; print while ; last DATA_LINE; } } # the inner loop has now updated $current_filter print $item unless $item eq $current_filter; } Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Sum not producing zero

2008-03-12 Thread Tom Phoenix
Good thing you didn't say anything important. Except > Subject: Re: Sum not producing zero Oh, right. Hey, if using this subroutine is the "solution", does that mean that you're adding up your financial numbers with accumulating round-off error and then using this code&

Re: how do I shorten this code

2008-03-11 Thread Tom Phoenix
compilation errors.\n}; You can optimize your code for many things; for speed, for code size, for understandability. But making it work right in the first place is more important than any of those other things. ObPerl: my %tenjqk = map +($_,1), qw{10 J Q K}; print "gotcha\n"

Re: posix shared memory

2008-03-10 Thread Tom Phoenix
s of Perl. If that's not in Sys::Mmap, it might be in PerlIO, or elsewhere. http://search.cpan.org/~rgarcia/perl-5.10.0/lib/PerlIO.pm Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: CGI problem fith file URIs

2008-03-10 Thread Tom Phoenix
On Mon, Mar 10, 2008 at 12:17 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > In what way is opening a file from a browser a CGI problem? Maybe you missed where the OP said "I am developing a help viewer app with CGI pm." Cheers! --Tom Phoenix Stonehenge Perl Training

Re: CGI problem fith file URIs

2008-03-10 Thread Tom Phoenix
ith Perl, you should be asking your questions about that in the beginners-CGI forum. http://learn.perl.org/faq/beginners-cgi.html Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Filehandles in a socket server

2008-03-10 Thread Tom Phoenix
onvenient ways to work with most data. Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: how and where to install module

2008-03-09 Thread Tom Phoenix
vides that functionality. Most importantly, if you're doing CGI programming with Perl, you should be asking your questions about that in the beginners-CGI forum. http://learn.perl.org/faq/beginners-cgi.html Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mai

Re: substr help

2008-03-06 Thread Tom Phoenix
ep through a program and see what's really happening to its data. Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Check if a given function returns something

2008-03-01 Thread Tom Phoenix
On Sat, Mar 1, 2008 at 7:09 AM, MK <[EMAIL PROTECTED]> wrote: > -> Because Tom replied to both you and the list. > > Maybe so, but get this: I definitely have two identical messages > addressed to me (none to the list, which makes it stranger) Here's another pair fo

Re: Check if a given function returns something

2008-02-29 Thread Tom Phoenix
# gets empty list What do you do with return that "gives you a zero"? --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Check if a given function returns something

2008-02-29 Thread Tom Phoenix
"). What does "the return value is limited" mean? Can you give a concrete example of what you're talking about? --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: How to read from keyboard?

2008-02-27 Thread Tom Phoenix
ng below an example program that uses Term::ReadKey. The program isn't quite correct, but I hope trying your keystrokes while it's running will help you to get to the next step. Good luck with it! --Tom Phoenix Stonehenge Perl Training #!/usr/bin/perl use strict; use warnings; use Term::

Re: about install module GD::Text

2008-02-24 Thread Tom Phoenix
ead-multi/auto/GD/GD.so: > undefined symbol: gdImageGifAnimAddPtr at > /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230. It looks like your GD module itself is broken. You should go back and re-install it, being certain that the new build passes all tests. Good luck with it! --Tom Phoenix Stonehenge Perl Training

Re: lwp & post

2008-02-22 Thread Tom Phoenix
amples.pod Good luck with it! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Excel Type Sorting ???

2008-02-16 Thread Tom Phoenix
C} cmp $b->{C} } Of course, that's probably not the way your criteria are stored, but it should give you the general idea. http://perldoc.perl.org/functions/sort.html Good luck with it! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: SOAP::Lite on Leopard

2008-02-08 Thread Tom Phoenix
n installing modules under Leopard? Installing modules on Mac OS X? Installing modules in general? http://search.cpan.org/~mkutter/SOAP-Lite/ http://perldoc.perl.org/perlmodinstall.html Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Re: system ("find...") - escape character help

2008-02-08 Thread Tom Phoenix
for you? You should be able to use it in conjunction with the File::Find solution that you already have. chmod is documented in the perlfunc manpage. http://perldoc.perl.org/functions/chmod.html Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: Calling Tomahawk tool in perl script

2008-02-06 Thread Tom Phoenix
er program from Perl? If not, perhaps you should explain in more detail what you want to do. Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: parsing html question

2008-02-05 Thread Tom Phoenix
ition.) I'm sure that anyone who frequently uses Perl's patterns, or any other regular expressions, will find this book informative today. http://regex.info/ Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: PerlMagick, refer to single image in image array

2008-02-04 Thread Tom Phoenix
t went wrong? Thanks. There's a better than 90% chance that you forgot to put 'use strict' and 'use warnings' lines above your code. use strict; use warnings; If you get an error message that you're not sure about, see what the perldiag manpage says about it. H

Re: debugger questions

2008-02-01 Thread Tom Phoenix
ses the debugger to pipe the output to a pager program for easy reading; the backslash preserves the structure of the hash: |x \%DB::optionVars If you're trying to access a lexical variable, though, you'll need to stop the debugger somewhere within the scope of that lexical in order t

Re: Hiding standard output

2008-02-01 Thread Tom Phoenix
operator, documented in the perlop manpage. http://perldoc.perl.org/perlop.html#Quote-Like-Operators Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: IO::Compress::Gzip creates empty file

2008-01-31 Thread Tom Phoenix
don't even have to use the debugger to do this, but it makes it easier. Without a debugger, just copy the files so that you can look at the copies later.) If the result is not right, make a stand-alone program that replicates the original conditions, and you'll get the same result; fi

Re: How can I open a file with "/"?

2008-01-31 Thread Tom Phoenix
please tell us: What are you _really_ trying to accomplish by putting characters like '/' and '&' in a filename? Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: IO::Compress::Gzip creates empty file

2008-01-31 Thread Tom Phoenix
"the same file as we just tested", but without going back to the OS to ask again. http://perldoc.perl.org/functions/-X.html Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: IO::Compress::Gzip creates empty file

2008-01-31 Thread Tom Phoenix
unless -f $new_name and -s _; > I've extracted and wrapped this code to create a little test program > which works fine, that is, the resulting compressed file contains the > data I expect. That would imply that the bug is in the other part of your code. Are you using both 'strict' and 'warnings'? Good luck with it! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: How to read an rfc spec

2008-01-28 Thread Tom Phoenix
s are posted to the correct forum. Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: About File::Monitor

2008-01-25 Thread Tom Phoenix
maybe a little program logic can make errors reasonably infrequent, and if the circumstances make errors reasonably easy to recover from, it's not a bad solution. Good luck with it! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

Re: 答复: is there a way to read content from lnk on windows?

2008-01-25 Thread Tom Phoenix
ot;, and pulling data from the .lnk file format probably deserves a module of its own. Neither type of module seems to be available on CPAN yet. Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Can't Install Perl as Non-Root

2008-01-24 Thread Tom Phoenix
On Jan 24, 2008 3:33 PM, Liam <[EMAIL PROTECTED]> wrote: > Tom Phoenix wrote: > > It looks as if you need to fix the system damage, so that your OS is > > reasonably similar to the configuration that other people have used to > > build perl. Experts on your OS may be

Re: About File::Monitor

2008-01-24 Thread Tom Phoenix
le was altered "during the sleep"? For example, it could be that you tried to change a file, but your change was still in an output buffer, and not yet flushed to disk, when the second scan occurred. Did the module pass all tests before you installed it? Hope this helps! --Tom Phoenix

Re: Return number of keys in a hash of hash? Looping through "sub hash"?

2008-01-24 Thread Tom Phoenix
sh_reference }; You can replace $sub_hash_reference with any expression that returns the reference to your sub-hash, such as $myHash{fred}, say. > Alternately, how could I loop through keys in a hash of a hash? foreach my $key (keys %{ $sub_hash_reference }) { ... } Hope this helps! --Tom

Re: [Q from Progamming perl] s/^-(?=.)//

2008-01-24 Thread Tom Phoenix
ext, and redo operators would be unable to operate upon the named blocks from within a nested block. Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

How to leave this list

2008-01-24 Thread Tom Phoenix
ing those pieces together, after you fix them up for the real address. Be sure to include all the punctuation in the right places. Good luck with the puzzle! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Can't Install Perl as Non-Root

2008-01-24 Thread Tom Phoenix
o build perl. Experts on your OS may be able to help, or you may be able to re-install the OS itself. Good luck with it! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: passing array reference from one perl script to another perl scirpt

2008-01-24 Thread Tom Phoenix
gram to another. You are mistaken. See the perlipc manpage for good information on inter-process communication methods that actually work. Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: NIS map lookup

2008-01-23 Thread Tom Phoenix
On Jan 23, 2008 1:17 PM, Vahid Moghaddasi <[EMAIL PROTECTED]> wrote: > On Jan 23, 2008 2:56 PM, Tom Phoenix <[EMAIL PROTECTED]> wrote: > > > > it is hard coded to use cc compiler instead of gcc. > > > > Where did you get that idea? > > > > The

Re: NIS map lookup

2008-01-23 Thread Tom Phoenix
s error when use the module: > Can't locate auto/Net/NIS/TIEHASH.al in @INC How did you try to build, test, and install the module? --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: perl intersect problem

2008-01-23 Thread Tom Phoenix
arlier: I'd start by looking in the archives of discussion areas for system administrators. Surely somebody else has had to unify machines like this. > my $result = grep( /$system/, $geco); Do you want something like this? my $result = ( index($geco, $system) != -1 ); Cheers! --Tom Phoen

Re: creating multiple variables in loop

2008-01-23 Thread Tom Phoenix
it's meant to be used. Good luck with it! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Postponing variable replacement

2008-01-23 Thread Tom Phoenix
; use warnings; my $message = '$who is cool'; my %includes; # . $includes{'who'} = 'perl'; (my $new_message = $message) =~ s/\$(\w+)/$includes{$1}/g; print "$new_message\n"; Hope this helps! --Tom Phoenix Stonehenge Perl Tra

Re: speeding up a perl script

2008-01-23 Thread Tom Phoenix
( `ls -1c /home/etc/*log | tail -1 `); > #determine the latest and last document That shell command could be more efficiently done within perl with readdir and friends. Good luck with it! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: losing variable in CGI.pm redirect

2008-01-23 Thread Tom Phoenix
does your program differ from this one? #!/usr/bin/perl use strict; use warnings; use CGI; my $value = 'redirect_ID'; my $query = new CGI; print $query->redirect("mytest.pl?ID=$value"); Hope this helps! --Tom Phoenix Stonehenge Perl Training -

Re: perl intersect problem

2008-01-22 Thread Tom Phoenix
D was itself dropped. Is that what you want it to do? Maybe you can invent a better solution. For example, instead of dropping users whose UID has been used elsewhere, perhaps they could be assigned new UIDs; I imagine that would make the users happier. Duplicate usernames aren't so simple

Re: perl intersect problem

2008-01-22 Thread Tom Phoenix
you're having. >From the look of your code, the output should be missing some whose UID or username are duplicates; are those the ones you can't find? Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Hash of hashes?

2008-01-21 Thread Tom Phoenix
erence a reference in the perlreftut manpage. http://perldoc.perl.org/perlreftut.html Good luck with it! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Getting last key from a file

2008-01-19 Thread Tom Phoenix
but it sounds like what you're looking for. seek() is documented in the perlfunc manpage. Good luck with it! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Can't Install Perl as Non-Root

2008-01-19 Thread Tom Phoenix
x27; step separately from 'make test'. Unfortunately, seeing the aftermath of a big wreck, it's sometimes hard to see what caused it. Did you run up against your disk space quota, perhaps? Good luck with it! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Help in system function

2008-01-18 Thread Tom Phoenix
iled.\n" } If the program you're running itself doesn't notice that things have failed, of course, it won't be able to tell your program. In that case, you'll want to fix the external program, or find another way to identify problems. Good luck with it! --Tom Phoenix S

Re: Can't understand this code snippet

2008-01-18 Thread Tom Phoenix
ts_of_randomness/4)) { $token .= unpack "H4", pack "S", int rand 2**16; } Of course, that may require changes to subsequent parts of the code that expected $token to be an integer instead of a string, for example. Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: find2perl

2008-01-17 Thread Tom Phoenix
ut so much has already been said, both here and on PerlMonks. So I'm appending a program to this message that shows an unusual way of setting the prune variable. You can, I hope, improve upon this algorithm once you understand it. Good luck with it! --Tom Phoenix Stonehenge Perl Training

Re: Memory Usage of my Script

2008-01-17 Thread Tom Phoenix
ld be more efficient in the long run to spend your time working at the car wash and earning enough in tips to buy that extra memory, which you can then use to play NetHack with the rest of us. Now you see why Perl programmers don't spend much time worrying about memory management. Cheers! -

Re: ASP with VIEWSTATE and perl

2008-01-17 Thread Tom Phoenix
On Jan 17, 2008 4:32 AM, Michael Alipio <[EMAIL PROTECTED]> wrote: > Anyone here knows a module which can handle viewstate > in asp html forms?? Have you looked on CPAN yet? http://search.cpan.org Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMA

Re: Problems in creating executable

2008-01-16 Thread Tom Phoenix
\Perl\lib\CORE\perl.h(420) : fatal error C1083: Cannot open include > file: 'sys > /types.h': No such file or directory Did the error message really include a line break within the file name? That's suspicious. Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubsc

Re: compile perl

2008-01-16 Thread Tom Phoenix
ase, your original trouble was that SIGTERM wasn't being recognized as a signal. How were you using it? If you're still having trouble with SIGTERM, check out the diagnostic program I've appended to this message. Do your various perl binaries say anything interesting when you

Re: Ideas for matching several lines of code (C)

2008-01-16 Thread Tom Phoenix
short yet complete example program that other people could run to see what you're trying? Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Problem Directing BCP error to error file

2008-01-16 Thread Tom Phoenix
ooks like: > > bcp ..test_b_plan_cp in /home/file_out.txt -c -t '|' -S *-U > ** -P **-I /home/bcp2db_sql.ini -e /home/bcp2db.error. Is this question about Perl? I think you sent it to the wrong list. There may be a forum elsewhere about this bcp program, or rela

Re: compile perl

2008-01-16 Thread Tom Phoenix
On Jan 16, 2008 4:47 AM, Diego . <[EMAIL PROTECTED]> wrote: > i'm trying to compile perl 5.8.8 Does it pass all tests, when you run 'make test'? Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

  1   2   3   4   5   6   7   8   9   10   >