Re: use lib

2007-04-02 Thread Bill Jones
On 4/2/07, Nigel Peck <[EMAIL PROTECTED]> wrote: My question is, is this the best way to go about having modules in development? Yes and no. Read more about this at: http://www.perlmonks.org/index.pl?node_id=238691 -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org

Re: Wanted: perl script to download iso files from web page

2007-03-14 Thread Bill Jones
oad them. I would suggest you look toward WWW::Mechanize http://search.cpan.org/search?query=WWW::Mechanize&mode=all -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x2A46CF06&fingerprint=on -- To unsubscri

Re: Control Characters

2007-03-13 Thread Bill Jones
On 3/13/07, Bill Jones <[EMAIL PROTECTED]> wrote: 000005000 002 000 \0 \n 002 Erm, make that: od -b xxx is - 000 000 012 002 -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ http://pgp.mit.edu:11371/pks/lookup?op=vindex&

Re: Control Characters

2007-03-13 Thread Bill Jones
sing od -c I see two bytes for the Control-J: \0 and \n 000005000 002 000 \0 \n 002 In answer to your question, for example under VIM, the ^@ the other poster is seeing is actually \n (which is what the OP wants) -- but I am in my own Universe =) So, when I hit ^V^J V

Re: Output Order?

2007-03-01 Thread Bill Jones
Gr check syntax check syntax ; lol ... On 3/1/07, Bill Jones <[EMAIL PROTECTED]> wrote: # A long winded approach might use # (modified from FAQ 8) - use IPC::Open3; $_ = "I am the Alpha and the Omega (UT99 Player Xan)\n"; open(o, "cat $_"); print; pri

Re: Output Order?

2007-03-01 Thread Bill Jones
om-line? Be careful of your I/O -- things that seem to make program (logical) order sense may not produce expected results... One possible answer to your question - # A long winded approach might use # (modified from FAQ 8) - use IPC::Open3; $_ = "I am the Alpha and the Omega

Output Order?

2007-02-28 Thread Bill Jones
erl hacker ...I think I am 1st? -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x2A46CF06&fingerprint=on -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Is Perlmonks.org down? Or is it me?

2007-02-14 Thread Bill Jones
On 2/14/07, Rob Coops <[EMAIL PROTECTED]> wrote: It might be a little slow as the few people that use perl seem to be able to need a lot of help on how t use it causing a huge load on the servers :-) Ouch! lol, I haven't been on there in months =) -- WC (Bill) Jones -- h

XUL::Node Question

2007-02-07 Thread Bill Jones
work -- I am using CygWin. Any ideas would be welcome :-) -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x2A46CF06&fingerprint=on -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

Re: Perl Soap::Lite Help

2007-01-26 Thread Bill Jones
ion on the web to do this. http://www-128.ibm.com/developerworks/webservices/library/ws-soapmap1/ ??? -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x2A46CF06&fingerprint=on -- To unsubscribe, e-mail: [EMAIL

Re: How to customize Perl installation

2007-01-24 Thread Bill Jones
give a LOT of output? perl -V ??? So, still, when you speak of Perl Core you are still talking about many needed modules. Additionally, when you speak of CGI.pm there are still other modules which make sense. What are you trying to accomplish? -- WC (Bill) Jones -- http://youve-reached-th

Re: Sending mail

2007-01-24 Thread Bill Jones
an someone point me to a different mailer that does have this capability? Maybe you can integrate this: http://search.cpan.org/src/GMPASSOS/Mail-SendEasy-1.2/lib/Mail/SendEasy/SMTP.pm -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ http://pgp.mit.edu:11371/pks/lookup?

Re: Perl SSH

2007-01-24 Thread Bill Jones
On 1/24/07, Dukelow, Don <[EMAIL PROTECTED]> wrote: by "ssh". Can someone regimen a Perl "ssh" module that works with Net::Telnet? I see there are several out there. I am partial to this one: http://search.cpan.org/~dbrobins/Net-SSH-Perl-1.30/ -- WC (Bill) Jon

Re: putting ";" as a replacement in the substitution.

2007-01-20 Thread Bill Jones
On 1/20/07, Michael Alipio <[EMAIL PROTECTED]> wrote: my $string = 'vd=root,status='; 'vd=root;status=' $string =~ s[\,][\;]g; -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x2A46CF06&

Re: How can I list down all builtin functions?(Re: Read a text file starting from the bottom)

2007-01-15 Thread Bill Jones
$found{$line} = ["1",$match]; } } @modules = sort count keys(%found); print <perl modules HTML $count=0; foreach $mod(@modules){ chomp $mod; $count++; if ($count == 1){ print "$mod\n"; } if ($count == 2){ print "$mod

Re: Help with URI encode

2007-01-13 Thread Bill Jones
uot;; $val =~ s/%([0-9a-f][0-9a-f])/chr(hex($1))/ieg; print "... Should be $val \n"; -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x2A46CF06&fingerprint=on -- To unsubscribe, e-mail: [EMAIL PR

Re: comparing hashes

2007-01-13 Thread Bill Jones
On 1/13/07, xavier mas <[EMAIL PROTECTED]> wrote: Yes, this is the code I use, but still doesn't work to me and I can't find the cause. Have you looked the results using Data::Dumper? Maybe the results aren't as expected? -- WC (Bill) Jones -- http://youve-reached-the

Re: CYGWIN Uninstall

2006-12-09 Thread Bill Jones
Delete the CygWin Folder ... geez. PS - This is OT and definitely falls under the category of learn to use your chosen platform. (God knows I myself have been told that many times and I do not post this advice lightly. Learn to use the operating environment you picked.) -- WC (Bill) Jones

Re: CGI XML

2006-12-07 Thread Bill Jones
On 12/7/06, Beginner <[EMAIL PROTECTED]> wrote: my $xml = eval {XMLin($fh, SuppressEmpty => 1, ForceArray => qr/item/) }; CGI::Lite and then use $cgi->parse_new_form_data; to get the XML into your $xml hash. -- WC (Bill) Jones -- http://youve-reached-the.endoftheinter

Re: Modules inter-relay ?

2006-12-04 Thread Bill Jones
jects. You still need to make sure the proper functions/sub-routines are "exported" so that your code is called in preference over the Perl code. However, if you wish to control what is "required" -- say branch logic, you will need to stick with te 'require' direc

Re: Modules inter-relay ?

2006-12-03 Thread Bill Jones
ou can place the "special" packages in their own directory and point to it: BEGIN { unshift (@INC, "/special"); unshift (@INC, "/special/packages"); } use strict; use InitGlobal; HTH/-Sx- -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org

Re: Checking for infinite loops

2006-12-03 Thread Bill Jones
imply installs a kernel-level process to "interrupt" the target thread/process when a previously determined "event" occurs. HTH/-Sx- -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: goto return ?

2006-12-03 Thread Bill Jones
return back to where it was called from but actually continue at the point AFTER the previous routine -- a little confusing to us beginners. HTH! =) -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

Re: Out of memory!, while extending scalar with vec()

2006-12-03 Thread Bill Jones
On 12/3/06, kyle cronan <[EMAIL PROTECTED]> wrote: (1<<$ARGV[0]) Just a thought - The argument you are passing is really the two's complement; so you are really passing 256M (not 28) to the vec statement. -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/

Re: Sorting from subroutine call

2006-12-02 Thread Bill Jones
($b->{ahash} eq 'x')) if $sorted == 0; $sorted = (lc($a->{string}) cmp lc($b->{string})) if $sort == 0; $sorted; } foreach $row (sort sortrows @$rows) { ... blah blah ... -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ -- To unsubscribe, e-mail: [EMAI

Re: Net::EasyTCP

2006-12-01 Thread Bill Jones
acking around with the fish protocol: http://linuxmafia.com/faq/Security/fish-protocol.html Maybe make it work even if ssh doesn't ... -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

Re: Anonymous scope ?

2001-10-05 Thread Bill Jones
On 10/5/01 12:50 PM, "Michael Fowler" <[EMAIL PROTECTED]> wrote: >> Also, you're not allowed to set it to 100 outside of the anonymous sub >> either. > > Sure you are, you just have to declare the variable outside of the anonymous > sub. > Not in this *example test* world I created for studen

Anonymous scope ?

2001-10-05 Thread Bill Jones
Another Stew-pid question :] Given - { my $var = 100; print "\$var is $var\n"; } print "But here \$var is $var\n"; How can I or is there a way to get outer $var to be equal to 100 without making $var global? Also, you're not allowed to set it to 100 outside of the anonymous sub

Re: [Fwd: Perl split to HTML]

2001-10-04 Thread Bill Jones
On 10/4/01 10:55 AM, "Tom Burkhardt" <[EMAIL PROTECTED]> wrote: ... A bunch of HTML deleted... > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] my $imMe = '-Sx-'; print <<_HEREDOCS; Has this list discussed HERE DOCS ? If not recently,

Re: problem in writing code(switch/case)or enum

2001-10-04 Thread Bill Jones
On 10/4/01 2:54 AM, "Rahul Garg" <[EMAIL PROTECTED]> wrote: > what i want is : > > $s_month can be 1 to 12 > if($s_month == 1){$s_month = 'JAN'};and so on > how can i do it. ? http://www.cpan.org/authors/id/S/SN/SNEEX/cal.perl_v2A HTH/-Sx- :] -- To unsubscribe, e-mail: [EMAIL PROTECT

Re: DELETE BLANK LINE

2001-10-03 Thread Bill Jones
On 10/3/01 11:49 AM, "Pedro A Reche Gallardo" <[EMAIL PROTECTED]> wrote: > By a blank line I mean any line containing only white spaces, > return, tab characters etc. chomp; s/\w//g; print "Non-white space still in there\n" unless length; ??? -Sx- -- To unsubscribe, e-mail: [EMAIL

Re: Merge documents

2001-10-03 Thread Bill Jones
On 10/2/01 9:05 PM, "Brett W. McCoy" <[EMAIL PROTECTED]> wrote: > All things are possible with Perl. > Well, caveats apply. -Sx- :] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: CGI script to change user's password.

2001-10-02 Thread Bill Jones
>> Hi, >> >> Recently I've received a task to write a script (CGI) to allow changing >> of user password on a web page. Basically I'm very new to CGIs and is >> facing a tremendous problem starting this task. >> >> Basically, the script is supposed to run on Apache (ran as "nobody") and >> allow

Re: Converting *nix file to dos

2001-09-26 Thread Bill Jones
On 9/26/01 4:02 PM, "Gibbs Tanton - tgibbs" <[EMAIL PROTECTED]> wrote: > rid of the hard return (^M) Of course, the easiest NON-Perl way, would be to use VI or PICO to just save your current ^M char in a file for safe keeping - like when you need it again. It's what I do; But some say I'm cra

Re: Security Mechanisms with Perl/Apache on an Hosted Website???

2001-09-25 Thread Bill Jones
On 9/25/01 10:26 AM, "Bill Jones" <[EMAIL PROTECTED]> wrote: > That is a big can of worms... > > There are various ways to get what you want - some better and more secure > than others; but not having root access is not a big deal... > > Something that may he

Re: Security Mechanisms with Perl/Apache on an Hosted Website???

2001-09-25 Thread Bill Jones
On 9/25/01 11:10 AM, "David Simcik" <[EMAIL PROTECTED]> wrote: > Hey folks, > I'm trying to cobble together some form of authentication mechanism on a > website I am building for a friend. His ISP uses Perl & Apache (it's on a > linux box). I (obviously) don't have root priviledges and have limit

Re: line with nothing

2001-09-24 Thread Bill Jones
On 9/24/01 10:53 AM, "COLLINEAU Franck FTRD/DMI/TAM" <[EMAIL PROTECTED]> wrote: > How can i repair (with a regular expression) a line with nothing inside ? s//what/; ??? -Sx- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Beginner needs help ...

2001-09-24 Thread Bill Jones
; # These two are not used... $quota = ''; $passwd = ''; $shell = ''; ... Do stuff ... } The things you should become familiar with - perldoc -f getpwent perldoc -f setpwent HTH; -Sx- William C (Bill) Jones Lead

Re: Certified in Perl?

2001-09-24 Thread Bill Jones
the job I have now :) Best; -Sx- William C (Bill) Jones Lead, Courseware Support Analyst (Lead e-Systems Developer) Florida Community College at Jacksonville 501 West State Street, Rm 229 Jacksonville, Florida 32202-4030 [EMAIL PROTECTED] PHONE (904