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

2006-05-01 Thread Tom Phoenix
rogrammer to choose as a key the data item that's going to be available at runtime. If you can choose freely which ones are keys and which are values, I'd suggest that you code so that it makes the most sense to you, even if that means long keys and short values. Hope this helps! --

Re: Help with untainting data from Net::SSH while running with -T

2006-05-05 Thread Tom Phoenix
is by "referencing subpatterns from a regular expression", which I thought I was doing. There are other ways to have an "Insecure dependency". A common one is to have an untrusted $ENV{PATH}. See the perlsec manpage. Hope this helps! --Tom Phoenix Stonehenge Perl Training

Re: Unsolvable? How to extract dollar amount from $1.12 stored in a file

2006-05-08 Thread Tom Phoenix
if it had been '$1.12' before the substitution. I can't use this: $str ='$1.12' because the $1.12 is read from a file. You seem to be under the impression that dollar signs in a data file will be meaningful to Perl. No; data is data. Unless you're doing somethi

Re: Getting modified time/date from the server

2006-05-08 Thread Tom Phoenix
open(HANDLE, $FILE); open(HANDLE, $FILE) or die "Can't open '$FILE': $!"; my $date = localtime( (stat HANDLE)[9] ); I suspect that you don't have warnings turned on, either. But if the stat() works, that should give you the modification timestamp. Good lu

Re: How to get the file's end-lines?

2006-05-10 Thread Tom Phoenix
On 5/10/06, Practical Perl <[EMAIL PROTECTED]> wrote: I want to know,is there a pure perl way to do that without using the 'tail' unix command? Yes. Have you tried to implement it? How far have you gotten? Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe

Re: using Perl grep to populate a scalar

2006-05-10 Thread Tom Phoenix
On 5/9/06, Smith, Derek <[EMAIL PROTECTED]> wrote: if (/(?)vg00/) { That doesn't look right. Why is that question mark inside parentheses? If Perl doesn't complain about that pattern, maybe it should. Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To uns

Re: using Perl grep to populate a scalar

2006-05-10 Thread Tom Phoenix
where it's going wrong. 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/> <http://learn.perl.org/first-response>

Re: date & time from server problem/question

2006-05-11 Thread Tom Phoenix
, be consistent, show your work, and continue on the reverse side of the paper if necessary. 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/> <http://learn.perl.org/first-response>

Re: permanently changing @INC

2006-05-12 Thread Tom Phoenix
On 5/12/06, Ryan Perry <[EMAIL PROTECTED]> wrote: How can I permanently change @INC? I've seen ways to alter this temporarily, but I want to add a directory forever. Recompile perl from the source, and reinstall. Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscr

Re: Hide password on console

2006-05-12 Thread Tom Phoenix
32-0.02/Win32.pm http://search.cpan.org/author/PHOENIX/Term-ReadPassword-0.07/ReadPassword.pm 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/> <http://learn.perl.org/first-response>

Re: not forking

2006-05-15 Thread Tom Phoenix
ting at once? Unfortunately, perl -d doesn't work well for forks. There's actually some support for fork in the debugger, but I'm having a hard time finding any documentation on it, other than the comments. Search for 'fork' in your perl5db.pl file, if you need it. Go

Re: hash assignments

2006-05-15 Thread Tom Phoenix
ot; Yes; that's a syntax error. Did you mean something like this, perhaps? push @mir2, grep !/\|v\d+/i, # select lines that don't match pattern `vddisplay $lv`; Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: reading a line at a time inefficient?

2006-05-16 Thread Tom Phoenix
t do any extra work to allow your program to see the data one line at a time.) 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/> <http://learn.perl.org/first-response>

Re: hash assign not working

2006-05-16 Thread Tom Phoenix
on $_ within grep()? That's bad form, even if Perl lets you get away with it. Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Storable error - Magic number checking on storable file failed

2006-05-16 Thread Tom Phoenix
On 5/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: "Magic number checking on storable file failed at blib/lib/Storable.pm That sounds as if the input wasn't a valid Storable file. Could it be some other file format? Was it written by Storable on your machine? Good luck

Re: rebless another object

2006-05-18 Thread Tom Phoenix
this, the parent class is probably misbehaving, though. 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/> <http://learn.perl.org/first-response>

Re: Insert value in existing record

2006-05-18 Thread Tom Phoenix
ements, then join the pieces. Would that work for you? --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Accessing page using Mechanize, have to go thr' proxy

2006-06-02 Thread Tom Phoenix
echanize/FAQ.pod#How_do_I_use_WWW%3A%3AMechanize_through_a_proxy_server%3F 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/> <http://learn.perl.org/first-response>

Re: how to update my @INC (can't find .pm's after upgrading perl)

2006-06-06 Thread Tom Phoenix
(site_perl/5.8.8.. what can I do with this? I recommend you re-install the modules. Although there may be a simpler solution, this method ensures that the modules are compiled for the correct configuration of the new perl binary. Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To

Re: why this alarm can't work?

2006-06-06 Thread Tom Phoenix
ed. So polling, as you're suggesting, is probably the best solution in that case. 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/> <http://learn.perl.org/first-response>

Re: why this alarm can't work?

2006-06-06 Thread Tom Phoenix
On 6/6/06, Chas Owens <[EMAIL PROTECTED]> wrote: I used "unless" because flock returns 0 on success and -1 on failure (unless it doesn't work like C version). Nope; it works like Perl. :-) A true value for success, false for failure. Cheers! --Tom Phoenix Stonehenge

Re: reading Perl syntax

2006-06-07 Thread Tom Phoenix
ge the hash in those circumstances, though, so your confusion is understandable. my %last_name; $last_name{'fred'} = 'flintstone'; # creates key 'fred' in hash my $x = $last_name{'barney'}; # does not create key 'barney' Cheers! --Tom Phoeni

Re: Can't locate object method - weirdness

2006-06-07 Thread Tom Phoenix
eck the 'package' directive to ensure that it's in scope, or declare your sub with its package name: sub em_log::dbh { ... } 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/> <http://learn.perl.org/first-response>

Re: Two perl installation

2006-06-08 Thread Tom Phoenix
ary runs it: http://search.cpan.org/~phoenix/Inside-1.01/ 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/> <http://learn.perl.org/first-response>

Re: plugins

2006-06-10 Thread Tom Phoenix
no guarantee of correct operation. But, if you need this behavior, you could use an eval block to trap those errors. 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: plugins

2006-06-10 Thread Tom Phoenix
perlfunc manpage. Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Can't locate Carp/Heavy.pm

2006-06-11 Thread Tom Phoenix
aybe it was deleted, or somehow not installed. You could re-install perl, which should fix things. Or, you could install just that one file, by manually copying it from a distribution to the appropriate @INC directory. Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-m

Re: A loop to parse a large text file--output is empty!

2006-06-13 Thread Tom Phoenix
On 6/13/06, Michael Oldham <[EMAIL PROTECTED]> wrote: while () { print OUT scalar(); You don't want that second use of . Check the documentation for readline() in the perlfunc manpage. Hope this helps! --Tom Phoenix Stonehenge Perl Trai

Re: DESTROY executed twice

2006-06-14 Thread Tom Phoenix
$count); } There may be other problems in your code as well, but this one jumps out at me. 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/> <http://learn.perl.org/first-response>

Re: I/O Question

2006-06-14 Thread Tom Phoenix
cify a file path with a string. (Is it that simple?) chdir('/Users/doug/wherever') or die "Can't chdir: $!"; So, why does your subject line say "I/O Question"? I couldn't find any question in your message. --Tom Phoenix Stonehenge Perl Training --

Re: compilation of Devel-Size for DataDumper

2006-06-15 Thread Tom Phoenix
ll it which compiler you'd like. 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/> <http://learn.perl.org/first-response>

Re: Zombi children of a IO::Socket::INET server

2006-06-15 Thread Tom Phoenix
only once in every five or ten connection attempts. 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/> <http://learn.perl.org/first-response>

Re: should be a seamless upgrade?

2006-06-22 Thread Tom Phoenix
e generally worth the effort, but feel free to postpone any upgrade until you need to apply it. ...or even a moment earlier. Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> &

Re: '-d' with '>' creates errors

2006-06-22 Thread Tom Phoenix
#x27;t open file 't' for output: $!"; select DEBUG_OUT; # now the default for print and printf Alternatively, you should even be able to do the same thing from within the debugger, by typing those two lines into the debugger as the first two commands before the rest of your program sta

Re: Can't use string ("3862926") as a HASH ref while "strict refs"

2006-06-23 Thread Tom Phoenix
nverted to an integer, since you're using it as one. Since the integer is a memory address, it's almost certain not to be what you want. 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/> <http://learn.perl.org/first-response>

Re: Win32 - determining if a file is a directory

2006-06-23 Thread Tom Phoenix
y has a directory with the name of an item from another directory. only . and .. are identified as directories, the other subfolders are not. Check. Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

Re: substr question

2006-06-25 Thread Tom Phoenix
d be correct, even though that would be the "weapon of choice" for many Perl programmers. One big reason is that a pattern can easily adapt to flexible data formats, such as a timestamp which may be written in many different ways. Hope this helps! --Tom Phoenix Stonehenge Perl Training

Re: disappointing '.*?'

2006-06-26 Thread Tom Phoenix
On 6/26/06, tom arnall <[EMAIL PROTECTED]> wrote: 1 #!/usr/bin/perl -w 2 3 $_ = " [11] [22] a "; 4 5 #with .*? 6 $re1 = qr/a|\[.*?\d\d\]/; 7 $re2 = qr/($re1\s)?$re1/; 8 ($f) = /($re2)/; 9 print "with .*? : $f\n"; 10 11 #without .*?

Re: disappointing '.*?'

2006-06-26 Thread Tom Phoenix
'a'. Without '.*?', the optional clause matches the empty string; so the second occurrence of $re1 matches '[11]'. Remember, it matches at the first place in the string where it *can* match. Once the RE engine finds a match, it doesn't keep looking for another

Re: What's this error in regex?

2006-06-26 Thread Tom Phoenix
lid regular expression when that line is evaluated, your program will crash. Perhaps you want string equality testing? Or to see whether one string contains another as a substring? Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: disappointing '.*?'

2006-06-27 Thread Tom Phoenix
*? : [11] [22] without .*? : [11] [22] Perhaps it's confusing because sometimes you've got two matches of $re1 and sometimes just one? From your earlier code, when you had two spaces: > > with .*? : [11] [22] a First $re1 matched '[11] [22]', second mat

Re: [OT] Can't redirect before fork().

2006-06-30 Thread Tom Phoenix
he child, as you've found. I need to setup the redirection before I fork, but I shouldn't redirect from within the child, Why don't you set up the redirection after the fork? Why shouldn't you do the redirection from the child process? That's how I always do it. Hope th

Re: "Misses" in a loop

2006-06-30 Thread Tom Phoenix
global log file. Check out flock(). 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/> <http://learn.perl.org/first-response>

Re: error after error

2006-07-01 Thread Tom Phoenix
quire 'NEWPACKAGE.pl'; Is the word "subroutines" intended to be a comment? I can't see any other reason for it to be there. Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: install cpan mini error

2006-07-02 Thread Tom Phoenix
n is indeed broken, I recommend rebuilding it from the start. Here's a page that may help you. http://developer.apple.com/internet/opensource/perl.html Good luck with it! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

Re: threading a needle on TEST

2006-07-02 Thread Tom Phoenix
ant to run the full set of tests for a module, the usual way is 'make test'. (You may need to run 'perl Makefile.PL' and 'make' first.) Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Want to start remote desktop thru the CGI script

2006-07-04 Thread Tom Phoenix
ser's end of the connection, not the server's? Browsers shouldn't be able to run arbitrary external programs without manual intervention, so when I want to run a program at the browser's end of the connection, I ask somebody at that end of the connection to run the program. Hope t

Re: Want to start remote desktop thru the CGI script

2006-07-04 Thread Tom Phoenix
e other ideas to help you. Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: iterate over newlines

2006-07-05 Thread Tom Phoenix
arse::RecDescent, maybe? http://search.cpan.org/~dconway/Parse-RecDescent-1.94/ 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/> <http://learn.perl.org/first-response>

Re: Learning Perl : Exercices

2006-07-07 Thread Tom Phoenix
gram is trying to process STDIN. Could %do_these have become empty? Check that @ARGV is non-empty before starting that while loop and I think your program will run as you would like. Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: Linux to Windows portability problem

2006-07-12 Thread Tom Phoenix
sage is coming from one of the modules you're using, and not from perl itself. Was there any additional information in the message, such as a file name or line number, that might help to identify the message's origin? Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubs

Re: Copying files in windows from one directory to the other

2006-07-12 Thread Tom Phoenix
e this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: question on redirecting output of Perl debugger commands

2006-07-12 Thread Tom Phoenix
enough, you can hack a copy of perl5db.pl to start the tee as the debugger starts up; see the perldebug manpage. 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/> <http://learn.perl.org/first-response>

Re: Help with Stupid question

2006-07-15 Thread Tom Phoenix
f is a function which returns a formatted string, printf goes a step further and prints the string. They're documented in perlfunc, but this example may be all you need: my $result = sprintf "%.3f", $buf/25400; Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubs

Re: math formula substitution and evaluation

2006-07-15 Thread Tom Phoenix
ur algebra, you'll have an easy time getting the job done. In fact, search around: Somebody else probably has an algebraic parser that you can start from. Good luck with it! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: pattern matching

2006-07-17 Thread Tom Phoenix
rn match is completed, \1 isn't correct.) You can find more about backreferences in the regular expression manpages, such as perlre and perlrequick. 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/> <http://learn.perl.org/first-response>

Re: Can't figure out why File::Path::rmtree says "Operation not permitted"

2006-07-18 Thread Tom Phoenix
es and directories; they're not yours. Perhaps you should ask user "nobody" to rmtree? Or if the files are supposed to be yours, maybe you just need to fix the ownership. Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Autovivification / anonymous array questions

2006-07-20 Thread Tom Phoenix
On 7/20/06, Brian Volk <[EMAIL PROTECTED]> wrote: } elsif (/^s+(\S.*)/) { # a provision That pattern begins by matching an 's' at the start of the line, but that's not what you want. Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubs

Re: CGI, IIS and pack

2006-07-20 Thread Tom Phoenix
documentation to be sure. 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/> <http://learn.perl.org/first-response>

Re: another error handling question

2006-07-21 Thread Tom Phoenix
On 7/21/06, Jerry DuVal <[EMAIL PROTECTED]> wrote: Any way to catch a die message? Perl has two common ways to do this: with an eval block and with the $SIG{'__DIE__'} mechanism; both are covered in the perlfunc entry about die. Hope this helps! --Tom Phoenix Stonehenge Perl

Re: httpd.conf problem restarting with additional directives

2006-07-28 Thread Tom Phoenix
s Perl, and although there are many knowledgeable people here, there are better places to ask about IBM Http Server. Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.or

Re: Help in && control statement

2006-07-28 Thread Tom Phoenix
ts code blocks at some places in the program, and the middle of an expression isn't one of them. Also, from the look of your code, you may be close to reinventing File::Find, or some similar module. Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EM

Re: regex quoting

2006-07-28 Thread Tom Phoenix
On 7/28/06, Jeremy Kister <[EMAIL PROTECTED]> wrote: how do you use \Q when you want to anchor the regex with a dollar sign? I think you're looking for \E, which "ends" the section of the string quoted via \Q. Hope this helps! --Tom Phoenix Stonehenge Perl Training -- T

Re: debugging Perl with the Eclipse IDE

2006-07-29 Thread Tom Phoenix
om an environment variable? 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/> <http://learn.perl.org/first-response>

Re: rtfm

2006-07-29 Thread Tom Phoenix
o the correct library in the correct way. If you rebuild and reinstall perl, you should be able to use the same compiler to build and install Math::Pari. In most cases, the default configuration will be all you'll need. Good luck with it! --Tom Phoenix Stonehenge Perl Training -- To un

Re: List OK?

2006-07-31 Thread Tom Phoenix
On 7/31/06, Sam DeForest <[EMAIL PROTECTED]> wrote: I have not received any list topics lately, is the list broken?? Or am I ? You can monitor the list at this URL: http://www.nntp.perl.org/group/perl.beginners/ Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsub

Re: if-clause again

2006-08-01 Thread Tom Phoenix
hy the return value becomes 1 When the keyword 'return' isn't used, the return value from a Perl subroutine is the last expression evaluated in the subroutine. That looks to be the value of $dbh->disconnect, which is probably 1 for success. Did you mean to return some other value? C

Re: AlphaX+Perl

2006-08-01 Thread Tom Phoenix
perl hw', where hw is your hello-world program. 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/> <http://learn.perl.org/first-response>

Re: Web page manipulation

2006-08-03 Thread Tom Phoenix
ant to use WWW::Mechanize. http://search.cpan.org/dist/WWW-Mechanize/ Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: reg-ex match - reverse looking assertion?

2006-08-04 Thread Tom Phoenix
er to light candles. Slip the string 'unlink <*>' into the database, and you'll be sad. Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: strange regex problem with backslash and newline

2006-08-05 Thread Tom Phoenix
ds everything including the backslash and the following newline, while $2 is left undefined. the "." obviously matched the newline at the end. No, the "." matched the backslash; the "[^\\]" matched the newline. Does that get you back on the right track?

Re: POD: force line break?

2006-08-06 Thread Tom Phoenix
n some newer ones) may not give you the effect you're looking for. What are you trying to do? You can have direct control of line breaks in what the perlpod manpage calls a "Verbatim Paragraph", if that's what you need. Hope this helps! --Tom Phoenix Stonehenge Perl Traini

Re: POD: force line break?

2006-08-06 Thread Tom Phoenix
you're trying to get from forcing some line breaks in your document. If we knew your goal, I or others on the list might have other ideas as to how you could represent your information. I'm afraid, the E<10> is about close as it gets... That's why it's Plain-Ol'

Re: Trouble simplifying hash of array access

2006-08-08 Thread Tom Phoenix
On 8/8/06, n[ate]vw <[EMAIL PROTECTED]> wrote: What am I doing wrong? You're probably not using 'use strict', else it would have given you a helpful diagnostic message that you'd find in the perldiag manpage. Cheers! --Tom Phoenix Stonehenge Perl Training -- To u

Re: uploading a file to webserver

2006-08-11 Thread Tom Phoenix
On 8/11/06, prashant puranik <[EMAIL PROTECTED]> wrote: I am trying to upload file to webserver. $filename = param('uploaded_file'); You probably want the upload() function; see the CGI module's documentation. Hope this helps! --Tom Phoenix Stonehenge Perl Traini

Re: Seek positioning

2006-08-11 Thread Tom Phoenix
e problem, but it may work for you. 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/> <http://learn.perl.org/first-response>

Re: Improving script listing Perl modules installed

2006-08-14 Thread Tom Phoenix
On 8/14/06, SFantar <[EMAIL PROTECTED]> wrote: I want to list all the Perl modules installed on my system. Did you want Inside? http://search.cpan.org/~phoenix/Inside-1.01/ Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTE

Re: Seperate into different files

2006-08-15 Thread Tom Phoenix
e or more arrays. Then I'd probably use sort and some custom subroutines to organize the data and produce some kind of report or reports. Also: CPAN. I'd use modules from CPAN to process the date and time data, and maybe other modules to help with data analysis or graphing, say. Hope

Re: handling upload variables in POST with LWP

2006-08-16 Thread Tom Phoenix
much to use it. 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/> <http://learn.perl.org/first-response>

Re: Does anyone use LWP anymore??

2006-08-18 Thread Tom Phoenix
http://search.cpan.org/~petdance/WWW-Mechanize/ 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/> <http://learn.perl.org/first-response>

Re: Simple-Yet Trivial Problem - Copy files from directory

2006-08-19 Thread Tom Phoenix
ines be causing other troubles? 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/> <http://learn.perl.org/first-response>

Re: backticks

2006-08-19 Thread Tom Phoenix
sages that gnuplot produces. Did you mean to put the two redirections in the opposite order, perhaps, so that errors would go into the file? But I see a number of modules on CPAN that involve gnuplot. Maybe you could save yourself some time and trouble by building upon one of those. http://search.cpan.or

Re: shifting 100 at a time

2006-08-20 Thread Tom Phoenix
splice @array0, 0, 100; 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/> <http://learn.perl.org/first-response>

Re: String or numbers in AoA?

2006-08-20 Thread Tom Phoenix
On 8/20/06, chen li <[EMAIL PROTECTED]> wrote: my @temp=split(/t/, $line); Isn't there supposed to be a backslash in there? Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

Re: accessing an array of hashes from another namespace

2006-08-21 Thread Tom Phoenix
{'foo'} = 42; $user->{'bar'} = undef; print "Yabba dabba doo?\n" if $user->{'name'} eq "Fred"; } Is that what you're looking for? There are several documentation pages about references that may fill in some gaps for you. Hope th

Re: Help on chomp()

2006-08-22 Thread Tom Phoenix
u can't find where the control characters are coming from, try stepping through your code with the Perl debugger to see what's really going on. Good luck with it! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

Re: Passing filehandlers

2006-08-23 Thread Tom Phoenix
le to read that answer and some other useful information about filehandles. 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/> <http://learn.perl.org/first-response>

Re: Intersection for each pair of arrays

2006-08-23 Thread Tom Phoenix
r picks one item from the n arrays, the inner picks a second. Inside, call your current code once for each pair of arrays. Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://lea

Re: [OT] perldoc typo

2006-08-24 Thread Tom Phoenix
Huh? There's no filehandle function in my Perl. Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: pack function

2006-08-24 Thread Tom Phoenix
On 8/24/06, Alexander Müller <[EMAIL PROTECTED]> wrote: But what happens if the passed string contains non-hex values like space or even "G"? What happened when you tried it? Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For add

Re: Perl and CGI

2006-08-24 Thread Tom Phoenix
dy else who knows about webservers. We know about Perl, but we don't know your webserver. There's probably a support FAQ and mailing list for your webserver. Good luck with it! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Re: sssh bang problem

2006-08-24 Thread Tom Phoenix
s than root suffice? I hope you know what you're doing. Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: -F vs split

2006-08-25 Thread Tom Phoenix
like \s and \x20, all seem to work: echo 'a: b' | perl -F'/:\s+/' -lane 'print join("--", @F)' See what happens when you file a bug report via the perlbug program. Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL P

Re: -F vs split

2006-08-25 Thread Tom Phoenix
On 8/25/06, John W. Krahn <[EMAIL PROTECTED]> wrote: See the link in my post for the "bug" report I already filed on this. Ah, I see that it's been fixed (or at least documented). Thanks. --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROT

Re: smtp authentication

2006-08-25 Thread Tom Phoenix
o => 'mailhost', Port => 587, Timeout => 60, Debug => 1) Did using the Debug option produce any helpful output? Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Accessing Clickbank Data

2006-08-26 Thread Tom Phoenix
;token' for secure connections only. We are using the LWP to execute the remote string, but their may be a better way to do this. WWW::Mechanize is built atop LWP, so you shouldn't have to change your code much. http://search.cpan.org/~petdance/WWW-Mechanize/ Hope this

  1   2   3   4   5   6   7   8   9   10   >