RE: my, my...

2006-12-15 Thread Charles K. Clarkson
ings as well. It is usually best to avoid using variables which are not local to a sub routine inside a sub routine, though there are cases where this it is desirable and good programming practice. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 25

RE: reg exp continued need pulled from reference

2006-12-13 Thread Charles K. Clarkson
blem with write_col() or with the setup for the object $worksheet. If it does test okay then the problem may be in the data manipulation just before the call to write_col(). HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 http://www.cl

RE: Conditional sorting across two arrays

2006-12-12 Thread Charles K. Clarkson
rse @ascending_indexes ]; print "\n\n"; print "Descending sort then ascending sort\n\t"; printf '%5d', $_ foreach @occ_count[ @descending_indexes ]; print "\n\t"; printf '%5d', $_ foreach @unique[ @descending_indexes ]; print "\n"; __END__

RE: CYGWIN Uninstall

2006-12-10 Thread Charles K. Clarkson
eing just a little contrite. Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 http://www.clarksonenergyhomes.com/ Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: Hi, how to extract five texts on each side of an URI? I post my own perl script and its use.

2006-11-11 Thread Charles K. Clarkson
e): Script: http://www.clarksonenergyhomes.com/chakrabarti.txt Module: http://www.clarksonenergyhomes.com/chakrabarti.pm HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 http://www.clarksonenergyhomes.com/ Don't tread on my bandwidth.

RE: Hi everyone, how to extract five texts on each side of an URI? I post my own perl script this time.

2006-11-09 Thread Charles K. Clarkson
Hui Wang <mailto:[EMAIL PROTECTED]> wrote: : I can make my program do its job at last, but it runs : slowly. Can anybody tell me how to improve the running : speed of this program? You only provided the module. Can you supply a working example? Something we can actually run? HTH, Cha

RE: Conversion of Hex bytes to binary and vice versa

2006-11-09 Thread Charles K. Clarkson
Dharshana Eswaran <mailto:[EMAIL PROTECTED]> wrote: : The desired output should look like the following: : : 0x0a => 1010 : 0x23 => 00100011 : : Can anyone suggest me for the same? Read perlfaq4: How do I convert between numeric representations/bases/radixes? HTH, Charles

RE: Worse than just a beginner

2006-10-24 Thread Charles K. Clarkson
ou have a solution for the remaining value. Try to solve the rest yourself. Come back here when you get stuck solving a step. print 1 % 25, "\n"; print 30 % 25, "\n"; print 300 % 25, "\n"; print 1234 % 25, "\n"; print 60001 % 25, "\n"; HT

RE: Jumping to inner loops

2006-10-24 Thread Charles K. Clarkson
HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 http://www.clarksonenergyhomes.com/ Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

RE: file parsing program -help

2006-10-17 Thread Charles K. Clarkson
pplication. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: nice regular expression

2006-10-13 Thread Charles K. Clarkson
I.B. wrote: : unfortunately I have to use regex to solve this problem. Why do you have to use a regex? Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [

RE: Modules for printing the content of an array

2006-10-11 Thread Charles K. Clarkson
aesthetically pleasing. use Data::Dumper 'Dumper'; print Dumper [EMAIL PROTECTED]; HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

RE: need to parse and verify certain content..

2006-10-11 Thread Charles K. Clarkson
Vishwanath Chitnis wrote: : is there any other way other than above mentioned to do this? How can we possibly tell with only those lines? Show more code. Something we can run that will illustrate your problem. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate

RE: Scope

2006-10-01 Thread Charles K. Clarkson
ce) = (); print Dumper $service; __END__ HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] &l

RE: question about Data::Dumper

2006-10-01 Thread Charles K. Clarkson
; use strict; use warnings; use Data::Dumper 'Dumper'; sub print_result{ print Dumper [EMAIL PROTECTED]; } 1; HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubsc

RE: Problem dynamically sign array a name

2006-09-29 Thread Charles K. Clarkson
.01 } @$array_ref ? 0 : 1; } __END__ Or even this (if you can understand it in six months): my @result = map cutoff( [ $P[$_], @P[8*$_+10 .. 8*$_+17] ] ), 0 .. 5; print join( "\t", @result ), "\n"; sub cutoff { my $array_ref = shift; return an

RE: Problem dynamically sign array a name

2006-09-29 Thread Charles K. Clarkson
7, 88, 89, 90, ], Is that what you really want for each sub array? HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

RE: using local when appropriate

2006-09-29 Thread Charles K. Clarkson
file { # open file for read or die my $file = shift; open my $fh, '<', $file or die qq(Cannot open "$file": $!); # slurp file local $/ = undef; # return file as scalar return <$fh>; } HTH, Charles K. Clarkson -- Mobile Homes Speciali

RE: Problem dynamically sign array a name

2006-09-29 Thread Charles K. Clarkson
you are attempting. We don't know what is in @P_array, for example, because it is never defined and @q_$i isn't a valid perl variable name. Working code would be better. Tell us what you want to do to the big array. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Marke

RE: incorrect output

2006-09-26 Thread Charles K. Clarkson
, which is a count of its elements. # Try this: if ( @line != 0 ) { # Or this: if ( @line ) { HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROT

RE: How do I populate a form field based on the value entered in a different field

2006-09-23 Thread Charles K. Clarkson
perl, you'll need to submit the form to the server before the second textbox is filled. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROTECTED] F

RE: Parse Help

2006-09-12 Thread Charles K. Clarkson
te tr/<>/'/; # add = if missing s/'/='/ unless /\d=/; # add to report push @report, $_; } # print report print "$_\n" foreach @report; __END__ HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 25

RE: Summary for mean/average calculation in perl

2006-09-10 Thread Charles K. Clarkson
Bryan Harris wrote: :: ... and cute tricks should only be used in cute programs. : : I'll take that as a compliment -- thanks, John! He said cute programs, not cute programmers. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328

RE: looping through complicated hashes..

2006-09-08 Thread Charles K. Clarkson
Michael Alipio wrote: : ignore this one.. I've already figured out how. Why not post your solution for the archives? Someone else may run across your question during a search and will not know the answer you found. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Adv

RE: New-Line in Regular Expression

2006-09-07 Thread Charles K. Clarkson
acknowlege" is misspelled. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://l

RE: Create HTML code with perl

2006-09-04 Thread Charles K. Clarkson
%', -spacing => 0, -padding => 0, -border => 0, -data=> [ [ 'test', 'test'], [ 'test', 'test'], ], ); print $test; __END__ HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advo

RE: [Bulk] RE: Totally lost - need a starting point

2006-08-31 Thread Charles K. Clarkson
Expect script via CGI is an Expect question, not a perl question. Perhaps you need to ask your question on an Expect mailing list. I did find this on the Expect FAQ. http://expect.nist.gov/FAQ.html#q24 HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968

RE: Trouble with variable scoping

2006-08-31 Thread Charles K. Clarkson
b ExcludeIPAddress { my $ipAddress = shift; my $subnet = shift; return scalar grep /$ipAddress/, @excludedIPAddresses, $subnet->broadcast(), $subnet->base(); } HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254

RE: Totally lost - need a starting point

2006-08-30 Thread Charles K. Clarkson
do that? I have no idea what Expect is, but searching for 'expect' and 'perl' in Google revealed a perl module for expect. The other pieces of your problem might include getting form values from an HTML form. CGI.pm can help with that. HTH, Charles K. Clark

RE: Need some help filtering thru results

2006-08-30 Thread Charles K. Clarkson
HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://l

RE: Urgent Help!

2006-08-22 Thread Charles K. Clarkson
x27;t explain it with words, show us an example. my $i = 0; foreach my $header ( sort keys %$headers) { push @input_data, { $header => $rows[$i++], }; } ~ HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don'

RE: calculate the value in an array of array

2006-08-19 Thread Charles K. Clarkson
chen li wrote: : $total[ $column ] += $row->[ $column ]; : : Can you or anyone else explain it a bit more? It is short for this. $total[ $column ] = $total[ $column ] + $row->[ $column ]; HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programme

RE: Vertically aligning textfields when using CGI

2006-08-16 Thread Charles K. Clarkson
; # adjust column widths to taste. return $cgi->Tr( $cgi->td( { -width => '30%', -valign => 'top' }, $field, ), $cgi->td( { -width => '70%', -valign => 'top' }, $control, ), ); } __END__ HT

RE: how to populate an 12x8 array from a data file

2006-08-14 Thread Charles K. Clarkson
e $fh; @array = reform( 12, @array ); print Dumper [EMAIL PROTECTED]; __END__ HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For add

RE: Unable to run prog's

2006-08-08 Thread Charles K. Clarkson
d line. The perl docs should be in HTML format on your hard drive. Look in the html directory where perl is installed and find the readme.html file. Mine is located here. file:///C:/Perl/html/readme.html HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 2

RE: if-clause again

2006-08-02 Thread Charles K. Clarkson
list context it will return the array matches. if ( databaserequest_noun( 'blah', 'blah', 'blah' ) ) { # matches } else { # no matches } HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread

RE: How to get the information on the dynamic website?

2006-08-01 Thread Charles K. Clarkson
sewe_perl wrote: : Is there any method to get the information on the dynamic : website, such as php, jsp and so on. Yes, FTP. php is executed on the server and the result is sent over http. LWP fetches the result, not the source. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free

RE: DBI

2006-08-01 Thread Charles K. Clarkson
Bjørge Solli wrote: : I get an error message I don't understand. I've been following : what I thought was good practice when talking to a DB. Did you import those constants? use DBI qw(:sql_types); HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web

RE: if-clause again

2006-08-01 Thread Charles K. Clarkson
serequest_noun() to return? HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn

RE: Syntax help with variable quotes

2006-07-31 Thread Charles K. Clarkson
(Cannot open "/path/to/the/$file.gif": $!); HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: if clause

2006-07-31 Thread Charles K. Clarkson
case) and $Q::lexicalentry are not both equal to 'Italy'. use CGI; my $q = CGI->new(); if ( 'Italy' eq 'Italy' ) { print $q->p("the entry is part of the database"); } else { print $q->p("the entry isn't part of the database");

RE: Returning Values fr nested FOR w/o RETURNing fr sub

2006-07-30 Thread Charles K. Clarkson
t it does, map() can compact things. sub bases { my $powers_ref = shift; return map { sprintf( '%08b', $_ ) . sprintf( '%4d', $_ ) . sprintf( '%4o', $_ ) . sprintf( '%4X', $_ ) . "\n"

RE: Dynamically choosing CGI file based on form output

2006-07-30 Thread Charles K. Clarkson
x27;tasks', -values => [ sort keys %tasks ], -labels => \%tasks, -multiple => 'true', ), span( { -class => 'place_cmd' },

RE: Multidimensional array / Passing an array to a sub

2006-07-30 Thread Charles K. Clarkson
Y(#memaddr) print @{ $array_ref }; :print $a[1][1]; # Works : :for (@a) for ( @{ $array_ref } ) { HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [

RE: Dynamically choosing CGI file based on form output

2006-07-28 Thread Charles K. Clarkson
Charles K. Clarkson wrote: : The first time the script through the 'select' field is empty Whoopsie! The first time through the script the 'select' field is empty -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

RE: Dynamically choosing CGI file based on form output

2006-07-28 Thread Charles K. Clarkson
en, to choose another the form : must be reloaded from scratch (ie: reload button does not : work, only go etc) That sounds like a browser caching problem. Search the CGI.pm docs for 'cache' for details. You can also add a reset button for the form. HTH, Charles K. Clarkson -- Mo

RE: Dynamically choosing CGI file based on form output

2006-07-27 Thread Charles K. Clarkson
TECTED],-default=>$commands1{1}[0,-lab els=>\%select); BTW, is your space bar broken? White space (tabs, spaces, blank lines, etc) used consistently can make programs easier to read and maintain. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programme

RE: File handling using CGI

2006-07-27 Thread Charles K. Clarkson
I BioKid wrote: : I am able to do the second part, but am not able to get : the users file to a variable or array ? Read the "Files and I/O" section of the "perlintro" file in the perl documentation. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Adv

RE: perl script from vbscript

2006-07-25 Thread Charles K. Clarkson
Shourya Sengupta wrote: : How do I call a perl script from a vb script? The same way you run *any* external program from a VB script. This is really a VB question, not a perl question. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328

RE: how to add a list of numbers

2006-07-20 Thread Charles K. Clarkson
first used. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org

RE: non fixed number of properties in constructor

2006-07-19 Thread Charles K. Clarkson
stored? Will a new country appear there? How are you accessing this database? HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: math formula substitution and evaluation

2006-07-16 Thread Charles K. Clarkson
tests and not work on a copy? : } : return 1; : } HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

RE: Looking for a faster way of getting a directory listing from a disk

2006-07-14 Thread Charles K. Clarkson
urse directories. Read up on the use of strictures and warnings. You have a sloppy programming style which will hurt you down the road. Start every script with these modules. Think of them as training wheels. They are needed until you find your balance. use strict; use warnings; use diagnost

RE: Still getting errors

2006-07-11 Thread Charles K. Clarkson
t C:\1\dfwrein\cgi-bin\a.pl line 54. Global symbol "$name" requires explicit package name at C:\1\dfwrein\cgi-bin\a.pl line 54. Global symbol "$in" requires explicit package name at C:\1\dfwrein\cgi-bin\a.pl line 60. Execution of C:\1\dfwrein\cgi-bin\a.pl aborted due to compilation er

RE: efficiently keeping a short list

2006-07-10 Thread Charles K. Clarkson
# set max @unique = @[EMAIL PROTECTED]; return @unique; } } __END__ HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROTECTED] F

RE: Removing print statements from cgi script

2006-06-30 Thread Charles K. Clarkson
sometimes appears that way to the user. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Win32 - determining if a file is a directory

2006-06-23 Thread Charles K. Clarkson
on file tests. if ( -d "c:/xfer/$filename" ) HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

RE: Another (hopefully more clear) plea for help with CSV data

2006-06-22 Thread Charles K. Clarkson
Chad Perrin wrote: : On Thu, Jun 22, 2006 at 03:07:32AM -0500, Charles K. Clarkson wrote: :: ::: OK, so here is the task. The first row I want to turn into ::: variable names. Machine, PurgeSuccess, etc. :: :: You probably don't want to do that. You may end up needing :: symbolic refer

RE: Trying to add hyperlink

2006-06-22 Thread Charles K. Clarkson
'Bay 2', 'Bay 3', 'Network Switch' ] ), row( 'Enclosure 1', '/'

RE: Trying to add hyperlink

2006-06-22 Thread Charles K. Clarkson
function already loaded into the main namespace by the 'use' statement. It will automatically change the output should the -noxhtml CGI.pm pragma is added later. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my

RE: Another (hopefully more clear) plea for help with CSV data

2006-06-22 Thread Charles K. Clarkson
he need for new searches (you, the boss, other programmers, users, etc.)? HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

RE: uninitialized value error

2006-06-21 Thread Charles K. Clarkson
Smith, Derek wrote: : Charles K. Clarkson wrote: : : : It seems that when the test on line 64 is true, $arry[0] : : is not defined (and not initialized) and throws this error. : : I thought that was the problem initially but tested it and I do : see this element populated on lines 64 and 65

RE: uninitialized value error

2006-06-21 Thread Charles K. Clarkson
initialized) and throws this error. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Question about creating variables from a CSV file

2006-06-21 Thread Charles K. Clarkson
h row by using Text::CSV_XS or Text::CSV_PP. These modules will also allow you to write properly formatted CSV files. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-

RE: unscrambler speedup rewrite

2006-06-20 Thread Charles K. Clarkson
print "\n"; foreach my $word ( @{ $dictionary->{$alpha} } ) { next if $word eq $scramble; print "$word\n"; } print "\n"; } else { print qq(Sorry, I cannot scramble "$scramble&

RE: scoping problem with hash

2006-06-13 Thread Charles K. Clarkson
Mr. Shawn H. Corey wrote: : for ( keys %kv_pairs ){ : $hash_ref->{$_} = $kv_pairs{$_}; : } You could use a hash slice there. @{ %$hash_ref }{ keys %kv_pairs } = values %kv_pairs; HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254

RE: defaults

2006-06-06 Thread Charles K. Clarkson
Bryan R Harris wrote: : Is there an "&&=" also? How about "or="? All perl operators are listed in the 'perlop' file. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandw

RE: What are the problems with my CGI script

2006-06-05 Thread Charles K. Clarkson
ext_field and menu_name have no associated values. CGI.pm will return there values as undef. Thus $name and $major are not initialized. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. PS You

RE: sorting?

2006-05-30 Thread Charles K. Clarkson
'), $entry->get_value('mail'); } # Or, only if it is understandable, my @sorted_addresses = map sprintf '"%s" <%s>', $_->get_value('displayname'), $_->get_value('mail'), $mesg->sorted( 'mail', 'displayname' ); HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: substitute/regex etc

2006-05-27 Thread Charles K. Clarkson
pelace anything that's not a number : as the third char). : : or is this right? It says replace any three character sequences where the first character is not lower case, the second character is not upper case and the final character is not a digit. HTH, Charles K. Clarkson -- Mobile Homes

RE: What are the differences between Perl and PHP when handling with Web pages

2006-05-26 Thread Charles K. Clarkson
n apt saying, "Keep your eye on the ball." Your web site visitors are the ball. You are focusing on the wrong object. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- T

RE: Howto check a parameter size in CGI.pm

2006-05-22 Thread Charles K. Clarkson
) = split ',', param( $field . '_meta' ); return sprintf qq|The textarea "$field" is %s characters long.\n| . qq|\tIt is %s rows by %s columns wide.\n|, length param( $field ), $rows, $columns; } __END__ HTH, Charles K

RE: Converting a string to a filehandle

2006-05-21 Thread Charles K. Clarkson
Wijaya Edward wrote: : I would like to convert that string as if it is stored : inside a file, and bypassing the file creation step. I think you want the IO::Scalar module. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't

RE: login

2006-05-18 Thread Charles K. Clarkson
if wrong : } : } : } : : I want if user corect do something, if not do something Build the %provera hash first. Once we know that hash is being built properly, we can then check for the correct user. Stop jumping ahead and concentrate on the hash for now. HTH, Charles K. Clarkso

RE: login

2006-05-17 Thread Charles K. Clarkson
gram from the rest of your code. Don't let it mess with exterior stuff and don't mess with its interior. Search Randal's old articles for good subroutine writing rules. I'll bet he has a lot of good advice. Here's a solution which does not use the dobijanje_iz_entrya() sub

RE: hash assign not working

2006-05-16 Thread Charles K. Clarkson
Charles K. Clarkson wrote: : It does not handle them special just because : there's a hash on the right hand side. Whoopsie! Should be left hand side not right. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org

RE: hash assign not working

2006-05-16 Thread Charles K. Clarkson
Wagner, David --- Senior Programmer Analyst --- WGO wrote: : while ( @mir ) { : $hash{shift(@mir)} = shift(@mir2); :} We can also use a hash slice. my %hash; @[EMAIL PROTECTED] = @mir2; HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web

RE: hash assign not working

2006-05-16 Thread Charles K. Clarkson
%hash = ( 1 => 2, 3 => 4, 5 => 6, ); HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 If it looks wrong convert it to plain text. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

RE: format output from Data::Dumper

2006-05-15 Thread Charles K. Clarkson
? [shrug]) print Dumper [ sort {$a cmp $b} @original ]; HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 If it looks wrong convert it to plain text. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: files creating filters

2006-05-14 Thread Charles K. Clarkson
processed? Did you check to be certain that the file you are trying to open was actually opened? In other words, have you verified that the file you want perl to open is really where you think it is. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328

RE: pointer to subroutine?

2006-05-10 Thread Charles K. Clarkson
= \&_uc; Calling convert() will now do the same as calling _uc(). HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: Regex and bad words

2006-05-05 Thread Charles K. Clarkson
x to also match the words, shithead, shitter, etc, etc. Have you looked at the Regexp::Common::profanity module. If it doesn't fit your need, perhaps the source can give a few pointers. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [

RE: scalar on a populated hash.

2006-05-05 Thread Charles K. Clarkson
($key, $value) = each %cc) { print "$key\t:$value\n"; : :} : :#} : HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: generate list in increments of 10's

2006-05-03 Thread Charles K. Clarkson
Mike Blezien wrote: : is there a simple way to generate a list of numbers from : 0 - 1000 in increments of 10 IE: 0, 10, 20, 30, 40. ...etc No offense intended, but is this a homework problem? HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail

RE: has key/value pairs

2006-05-03 Thread Charles K. Clarkson
s deprecated. All the work is being done in "$vg{$_}++" which ignores the split() and increments the value associated with the key in $_. That one of those key/value pairs happens to be correct is just coincidence. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328

RE: has key/value pairs

2006-05-03 Thread Charles K. Clarkson
+/ ) { : : chomp; my( $key, $value ) = split /=/; $vg{$key} = $value; : $vg{$_}++; Delete that line. You can read more about the split() function in the perl documentation. : : } : : } HTH, Charles K

RE: using "our" across blocks

2006-05-02 Thread Charles K. Clarkson
is not a persistant perl enviroment, like modperl, just this. END { # $^T is the time at which the program began # running, in seconds since the epoch. print $^T - time(), "\n"; } HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail

RE: using "our" across blocks

2006-05-02 Thread Charles K. Clarkson
I think the problem we are having is why use a solution which resorts to global variables when lexical variables get the job done fine? use strict; use warnings; my $baz = 'pre-baz'; my $foo = foo(); print $foo, "\n"; print $baz, "\n"; sub foo { my $foo = &#x

RE: CGI/Includes question

2006-05-02 Thread Charles K. Clarkson
che will then process the SSI includes of the .shtml file. BTW, there is a H::T mailing list made exclusively for H::T questions. https://lists.sourceforge.net/lists/listinfo/html-template-users HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EM

RE: CGI - Tables and Stylesheet

2006-05-02 Thread Charles K. Clarkson
so what is your question? Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: What is the function of BEGIN in perl

2006-05-01 Thread Charles K. Clarkson
chen li wrote: : Recently I read some source codes of perl modules. I : find some codes look like this: : : BEGIN {..} : : What is the function of BEGIN here? Read BEGIN, CHECK, INIT and END in the "perlmod" file. HTH, Charles K. Clarkson -- Mobile Homes Spec

RE: Replying to the perl list

2006-04-29 Thread Charles K. Clarkson
ource correctly. The same is true of a technical email list. If I choose to use a technical email list for answers I would first read up on the etiquette for using that list then I would be able to use that resource correctly. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968

RE: Replying to the perl list (was Re: problem with whitespace not splitting on split.)

2006-04-29 Thread Charles K. Clarkson
. Then the experts and we young whipper snappers can both be happy. :) HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: problem with whitespace not splitting on split.

2006-04-26 Thread Charles K. Clarkson
space. Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: clarification abt system function

2006-04-24 Thread Charles K. Clarkson
ned module named "system". : : System->get_renv(); : System->get_receiver_dir(); Show us more code and tell us what you are trying to do. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

RE: print_r

2006-04-21 Thread Charles K. Clarkson
BTW, I think indent() could be rewritten. I think these do the same thing as your indent(). sub indent { my $indent = shift; return '' unless defined $indent; return '' x $indent; } # Or: sub indent { return '' unless defined $_[0];

RE: sorting an array of arrays by arr_el[$idx][2] (or something like that)

2006-04-17 Thread Charles K. Clarkson
u actually get an array of arrays you can try the Sort::ArrayOfArrays module to sort it. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: Cannot access file because it is being used by another process

2006-04-15 Thread Charles K. Clarkson
n IIS 6.0 error. Are you using IIS 6.0? http://support.microsoft.com/kb/890015/en-us Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: ignore first 9 lines...

2006-04-10 Thread Charles K. Clarkson
kidding? I barely understand it. I'm sure it will work, but I hope I don't have to maintain it. Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/

RE: Scraping Data Behind a Form

2006-04-10 Thread Charles K. Clarkson
[EMAIL PROTECTED] wrote: : I don't follow - when I add the suggested line I do get No forms : at (the url). But there is a form on the page cited in the : script. There is no form on the page returned by the given url. You can double check it by navigating to that page in a browser and viewi

  1   2   3   4   5   6   7   >