RE: help dbd-anydata / dbi-dbd-sqlengine issue

2013-05-20 Thread Brian Raven
57109_20130514.dat"; > > #my ($file, $flags, $dbh) = @_; > > # define data source > # $dbh->func('CRU_in', 'CSV', $file, $flags, 'ad_catalog'); > $dbh->func('CRU_in', 'Pipe', $file, $flags, 'ad_catalog'); > > #

RE: confused by use of 'implied' variable

2013-04-08 Thread Brian Raven
; yes, i know i can simply try it, to see if it works - but is there a more > general rule one can follow that > tells them when this kind of thing can normally be used, versus when not? Start with 'perldoc perlvar'. It is the first one listed under General Variables. HTH -- Brian

RE: button with multiple font sizes

2013-03-13 Thread Brian Raven
Dan, Tk::Button only allows for text in a single font, as you have probably discovered. However, it does let you use an image. If you can render the text you want as an image (e.g. GD?), that that might be a way to go. HTH -- Brian Raven From: perl-win32-users-boun

perl-win32-users@listserv.activestate.com

2012-12-21 Thread Brian Raven
; > } > sub2(\&subroutine); > sub sub2 { > &sub3 = &{$_[0]}; #problem is obviously here with this line, seems its not > being dereference > sub3('world'); The only variable types are scalar array and hash. There is no subroutine variable type, but you can

RE: 'mysplit' ???

2012-11-26 Thread Brian Raven
oogled' the word 'mysplit' and find no results. > > might anyone know exactly what 'mysplit' is? I may have misunderstood your question, but mysplit is the sub defined above (see ^^^). HTH -- Brian Raven Please consider the en

RE: How to know a closed Socket?

2012-11-26 Thread Brian Raven
data because I am broken" is to use a heartbeat mechanism, i.e. a sender will send a heartbeat message at regular intervals, that can be checked by the receiver. Welcome to network programming. HTH -- Brian Raven Please consider the environment before pri

RE: In need to efficiently retrieve HTTP

2012-11-21 Thread Brian Raven
re the OP downloading from google maps, for example, he might find that they don't like the idea of anybody downloading a lot of files in a short period (see https://developers.google.com/maps/faq#usagelimits). HTH -- Brian Raven Please consider the en

RE: Need help with TK DirTree

2012-10-29 Thread Brian Raven
Not the first time a question like this has been asked. Take a look at this link, which may point you in a useful direction. http://www.perlmonks.org/?node_id=170334 -- Brian Raven From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun

RE: Is there a range of Standard Perl Exit Codes?

2012-08-15 Thread Brian Raven
e output the >error message, that is. However, I would be careful about doing this as there >could be some odd side effects, depending on how the modules that you use >behave. It might be worth looking for alternate method of achieving your desired result, which isn't entirely clea

RE: trouble understanding/using file handle in a sub routine

2012-08-10 Thread Brian Raven
tter to assign the parameters to local variables with appropriate names, rather than relying on a comment. For example... sub write_fp_data { my $file_pointer = shift; my $data_value = shift; print $file_pointer $data_value; } HTH -- Brian Raven Please consider the environment b

RE: Okay, hand me my dunce-cap

2012-06-25 Thread Brian Raven
155) { >$cs_keys{$key} =~ s{/Zones/}{/Lockdown_Zones/} > } > > I just got hung up on using the map line... Perhaps I am missing something, but sequential numeric keys suggest array rather than hash to me. HTH -- Brian Raven Please consider the environment before printing this e-mail.

RE: win32 and modifying a file

2012-06-08 Thread Brian Raven
however you do it, keeping a backup of the original may be a good idea. As for the how to do it part, Tie::File has already been suggested, which may be a good fit for what you want to do. If your file is small enough to fit in memory, then File::Slurp may be worth a look, particularly the edi

RE: dbd-anydata - i cant get it to INSERT new records

2012-05-11 Thread Brian Raven
::AnyData'), it looks like >you are creating an in memory table with ad_import, but I can see no sign of >the updated table being saved with ad_export. Possibly ad_catalog would do >what you want. [N.B. I haven't used DBD::AnyData, but it looks interesting. Thanks for the pointer.]

RE: Hash Key function puzzlement -- a point of information query

2012-05-03 Thread Brian Raven
should see a printed value of 128, wouldn't you think? But no, it prints: > "hash has 0 keys". What's up wit > dat? What obvious thing am I missing? That's correct, because you have not added any keys. HTH -- Brian Raven Please consider the environment before

RE: :localxxxxxlabel

2012-03-22 Thread Brian Raven
e it is probably autoloaded. A case insensitive search of CGI.pm for 'autoload' may give a bit more insight. It's possible that your web client doesn't handle xhtml, which is the default style now. In which case it is probably better to specify the -no_xhtml pragma rather t

RE: directory listing of "Computer" on win32

2012-03-14 Thread Brian Raven
le... use strict; use warnings; use Win32API::File qw{GetLogicalDriveStrings}; use File::Find; my $dstring; my $olen = GetLogicalDriveStrings(26*4+1, $dstring); my @drives = map {s|\\|/|g; $_} grep {stat($_)} split "\000", $dstring; print "Drives [

RE: perl pattern match option 's' (coerce . to include \n)

2012-03-08 Thread Brian Raven
, and with > 'output line seperator' $\ (which would be used for - print "something\n", as > in writing to files). but ive > never heard of the 'pattern matching seperator' - which i think i would need > in this case. Without the /s modifier, . matches any

RE: pattern match 'or' operator |

2012-03-08 Thread Brian Raven
27;L'/ > > thanks for helping me with my understanding of this. Assuming trailing white space, then qr{\\L(ength)?\b} should match both. However, depending on what you are trying to achieve, it might be advisable to use a module that knows how to parse PDF files. HTH -- Brian Rave

RE: Quick memory-recovery question--a point of information

2012-03-08 Thread Brian Raven
same. I would expect the undef to be unnecessary. Unless you stored a reference to the array somewhere during that scope, it will get garbage collected when the scope exits. If you wanted to recover the memory before the end of scope for some reason, although I can't think of a good one

RE: accessing other file version information

2012-01-31 Thread Brian Raven
32-File-VersionInfo-0.03/VersionInfo.pm HTH -- Brian Raven Please consider the environment before printing this e-mail. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, please advise the sende

RE: Using the --info data from Perl

2012-01-30 Thread Brian Raven
uming that you can locate the executable ($0 perhaps), then either Win32::File::VersionInfo or Win32::Exe should get you that. HTH -- Brian Raven Please consider the environment before printing this e-mail. This e-mail may contain confidential and/or privileged information. If you are

RE: Window 7 x64, @inc search question

2012-01-09 Thread Brian Raven
e something in the delta documentation for core modules (see perldoc perl.*delta). For non core modules, their Changes file might be useful. HTH -- Brian Raven Please consider the environment before printing this e-mail. This e-mail may contain confidential and/or privileged information. If y

RE: RE: File::Find::Rule problem

2011-12-14 Thread Brian Raven
Find::Rule to the later version > > (Perl as well, if you can). It might make a difference. > > > > HTH > > > > > > -- > > Brian Raven > > > > Thank you both so much for testing this. Nice to know I'm not crazy or > stupid - this time. I also realiz

RE: File::Find::Rule problem

2011-12-13 Thread Brian Raven
test/84-33 Kland, Dan/test2.pl > > = > == 7b >>84-32<< > > D:/My Documents/projects/dave/test/should-print.txt > D:/My Documents/projects/dave/test/84-33 (Kland, Dan)/test.pl D:/My > Documents/projects/dave/test/84-

RE: Capturing STDERR (Specifically from Getopt::Long)

2011-12-02 Thread Brian Raven
rom Getopt::Long, to > be re-used later, without > breaking STDERR? > By the way, I am using Perl V5.8.9 The easiest way may be to use a temporary $SIG{__WARN__} handler to capture warnings from GetOptions, e.g. something like... { # Capture warnings from GetOptions local $SIG{__WAR

RE: Re:Problem with regex

2011-11-17 Thread Brian Raven
> Yes, I've been convinced to use Text::CSV, but for some reason the > ActiveState ppm does not actually install it. It complains about not > being able to find some other module that it depends on. Don't know if it helps, but I seem to have installed Text::CSV_XS on A

RE: Help with error msg

2011-11-07 Thread Brian Raven
-- Brian Raven > -Original Message- > From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl- > win32-users-boun...@listserv.activestate.com] On Behalf Of Barry Brevik > Sent: 04 November 2011 23:56 > To: perl Win32-users > Subject: Help with error

RE: How to split up a string with carriage returns into an array

2011-11-07 Thread Brian Raven
n I use the following code to assign $msg. > > $msg = $element->as_trimmed_text(); > > (where element points to this line in an htm file.) Try using some other means of getting the test, for example $element->as_text. See 'perldoc HTML::Element' for more info. HTH --

RE: How to Extract a Date from a File

2011-11-03 Thread Brian Raven
> -Original Message- > From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl- > win32-users-boun...@listserv.activestate.com] On Behalf Of Brian Raven > Sent: 03 November 2011 10:37 > To: perl Win32-users > Subject: RE: How to Extract a Date from a File &g

RE: How to Extract a Date from a File

2011-11-03 Thread Brian Raven
; defined $root or die "Failed to parse\n"; my $element = $root->look_down("id", "StartWeekLabel"); defined $element or die "Failed to locate id=StartWeekLabel\n"; my $rawdate = $element->as_trimmed_text(); print "Raw date '$rawdate'\n&

RE: Making directories

2011-10-26 Thread Brian Raven
rather than directory permissions. That is the files being copied are read only, which is why the second copy fails. The answer probably depends on how you are copying files. For example, according to the doco, File::Copy::cp preserves the original permissions while File::Copy::copy sets default permis

RE: GuiTest and Locked Screen

2011-09-21 Thread Brian Raven
dow events to specific windows, as the windowing system does. It doesn't entirely surprise me that locking the screen, and therefore the windowing system, prevents that from working. It's kind of what locking the screen is designed to do. Another method of communicating with, or control

RE: Help with array

2011-09-08 Thread Brian Raven
;s a 'newb' at stuff that haven't tried before. It might help to think of inserting elements into an array as replacing a section of length 0, when you read 'perldoc -f splice'. It might also be worth taking a look at slices, described in 'perldoc perldata'. HT

RE: Keyboard handler

2011-09-02 Thread Brian Raven
= $STDIN->Input(); > if (defined $input[0] and $input[0] == 1) > { > > } > > > } Not sure what you mean. That code doesn't see very complex. In case you haven't spotted them, there are a few FAQs that may help. See 'perldoc -q key' to start w

RE: List vs. Array

2011-08-22 Thread Brian Raven
ly. Is there a difference between a list and an array? > > (believe it or not, I'm not a newb). > Here's a link that discusses the topic: > https://www.socialtext.net/perl5/array_vs_list Also a FAQ. See 'perldoc -q "list.*array"'. HTH -- Brian Ra

RE: MS Access Update Memo Field with 750 characters

2011-07-07 Thread Brian Raven
es { my $db = shift; my $sql = qq{UPDATE PROD_INT set COUNTRY = ? where ROW_ID = ?}; my $sth = $db->prepare($sql); foreach (keys %country_releases) { $sth->execute($country_releases{$_}, $_ . ":ZZZ"); } } HTH -- Brian Raven Please consider the environment

RE: Writing To Win Event Logs using Win32::EventLog

2011-04-13 Thread Brian Raven
ethods on getting exactly what I want written to > the Event Logs? > Cheers and thanks in advance. > Ashley This link may help. http://www.perlmonks.org/?node_id=737505 HTH -- Brian Raven Please consider the environment before printing this e-mail. This e-mail may contain confidentia

RE: regex like option *values*

2011-03-07 Thread Brian Raven
> -Original Message- > From: p sena [mailto:senapati2...@yahoo.com] > Sent: 05 March 2011 05:34 > To: perl-win32-users@listserv.ActiveState.com; Brian Raven > Subject: RE: regex like option *values* >>>>> __DATA__ >>>>> abc0[1-9].ctr.[pad,spd]

RE: trying to create first simple perl 'filter' program on windows

2011-03-04 Thread Brian Raven
s using the cygwin shell, as long as you put the appropriate line at the start of your script, e.g. "#!c:/perl/bin/perl". Another work around is to turn your script into a batch file. See the provided script pl2bat for help with that. HTH -- Brian Raven Please consider the enviro

RE: regex like option *values*

2011-03-03 Thread Brian Raven
> -Original Message- > From: p sena [mailto:senapati2...@yahoo.com] > Sent: 03 March 2011 15:40 > To: perl-win32-users@listserv.ActiveState.com; Brian Raven > Subject: RE: regex like option *values* >> __DATA__ >> abc0[1-9].ctr.[pad,spd].set.in >> abc[01

RE: regex like option *values*

2011-03-03 Thread Brian Raven
,spd].set.in abcL[1,2,3].ctr.[pad,spd].set.in abcL[1,2,3].ctr.[70,001].set.in --- It should work for lists of ranges, and ranges of strings as well as numbers. Regarding incorporating into Getopt::Long, see the Tips and Tricks section of the doco. HTH

RE: isue with file-find and search/replace function

2011-02-28 Thread Brian Raven
ir =~ s/$dir//i; >print "scpfile = $scpfile\nCurrent Dir after stripping path\t- > $currentdir\n"; >exit; >} > } > And output : > The folder name is c:\temp > Current Dir before stripping path - c:\temp/SMTPSVCLOG > scpfile = smtpsvc

RE: spurious deaths in script execution due to read-only Config?

2011-02-23 Thread Brian Raven
is a tied hash, I believe. Regarding your work around. Map in a void context is usually frowned upon. Perhaps grep or possibly ... for ('now') { require ActiveState::Path } ... should have the same effect, i.e. aliasing $_ to something (hopefully) innocuous. HTH -- Brian Rav

RE: spurious deaths in script execution due to read-only Config?

2011-02-23 Thread Brian Raven
of Config ('use diagnostics' will give a stack trace) but I can't see how it causes that error, i.e. "%Config::Config is read-only". Note that inhibiting the activestate override ($ENV{ACTIVEPERL_CONFIG_DISABLE} = 1) also seems to make the problem go away. Maybe somebody

RE: Invalid type 'Q' in pack

2011-02-15 Thread Brian Raven
either provide a suitable diagnostic if support for 64 bit integer values is not available, or perform the necessary conversion. You might want to take that up with the module's maintainer. I don't know if it is possible/practical to build a 32 bit version of Perl with support for 64 bit int

RE: experiencing Out of memory errors

2011-01-26 Thread Brian Raven
t basis to > help us. Unless it is fairly easy to create a 64 bit setup, it might be worth expending some effort in checking whether your belief that you don't have a memory leak is sustainable. This may help. http://modperlbook.org/html/14-2-6-Memory-Leakage.html HTH -- Brian Raven Pl

RE: Where's Tk?

2010-12-17 Thread Brian Raven
-Original Message- From: activeperl-boun...@listserv.activestate.com [mailto:activeperl-boun...@listserv.activestate.com] On Behalf Of Brian Raven Sent: 17 December 2010 17:25 To: Sisyphus; activep...@activestate.com; perl-win32-us...@activestate.com Subject: RE: Where's Tk? > ..

RE: Where's Tk?

2010-12-17 Thread Brian Raven
-Original Message- From: Sisyphus [mailto:sisyph...@optusnet.com.au] Sent: 16 December 2010 22:26 To: Brian Raven; activep...@activestate.com; perl-win32-us...@activestate.com Subject: Re: Where's Tk? > - Original Message - > From: "Brian Raven" &g

Where's Tk?

2010-12-16 Thread Brian Raven
I have Activestate Perl 5.12.2 (build 1202) installed. I can see some Tk extension packages in the PPM gui, but no sign of Tk itself. Is there a problem, or is just me looking in the wrong place? -- Brian Raven Please consider the environment before printing this e-mail. This e-mail may

RE: does anyone know how to get a TRUE ntfs directory listing? usingPerl, or otherwise

2010-12-10 Thread Brian Raven
ams" on files etc. What Jan said, especially about copying, plus... Sysinternals (http://technet.microsoft.com/en-us/sysinternals/default) has some utilities that will give you info on NTFS meta data files and ADS. There is even a Perl module on CPAN (and hopefully on PPM) to help with AD

RE: how to best convert an array containing hexadecimal values to asciivalue?

2010-11-24 Thread Brian Raven
ack("(H2)*", @hex_array); Have another read through 'perldoc -f pack'. I usually have to whenever I use it. Also, I notice that all of your characters seem to be followed by a null byte. Are these perhaps 16 bit characters, or will you strip the null bytes out at some point? -

RE: Checking for Available Port

2010-11-02 Thread Brian Raven
::Wrapper, that may be of interest. HTH -- Brian Raven Please consider the environment before printing this e-mail. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, please advise the sender imm

RE: Checking for Available Port

2010-11-01 Thread Brian Raven
local, $remote, $state) = split; my ($ip, $port) = split /:/, $local; if ($port == $port_to_check) { return $state; } } return "NOT IN USE"; } HTH -- Brian Raven Please consider the environment before printing this e-mail. This e-mail may contain c

RE: lame question "\\\\.\\pipe\\pipename" vs '\\.\pipe\pipename'

2010-10-20 Thread Brian Raven
ng literals are subject to backslash and variable substitution; single-quoted strings are not (except for \' and \\). Unless you are using the string as a command line argument, then / should work, and not need escaping. HTH -- Brian Raven Please consider the environment before printin

RE: Win32::OLE on MS Word using Selection.Find.Execute

2010-09-13 Thread Brian Raven
= $True > $objDoc = $objWord.Documents.Open($strWordFile) > > $objSelection = $objWord.Selection > > $d = get-content "d:/temp/acronyms.txt"# read file of acronym > | > definition > foreach ( $l in $d ) { > ($acro, $def) = $l.split('|')

RE: Changing Subject color using MIME::Lite

2010-08-23 Thread Brian Raven
f a specific MUA. If that's not possible or feasible, then you may want to rethink your requirement. HTH -- Brian Raven Please consider the environment before printing this e-mail. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient

RE: Need help with TK: scrollable adjustable columns of text

2010-08-19 Thread Brian Raven
s scrolledtext + adjustable columns. I am not entirely clear what you are asking for, but have you looked at Tk::Hlist? It doesn't have adjustable columns, but I notice that there is a Tk::Hlistplus on CPAN which looks like it does. It seems to be in the PPM archive under the package nam

RE: Tk, Tkx, PerlApp, etc

2010-06-09 Thread Brian Raven
multiple languages, including Perl using Tkx. http://www.tkdocs.com/tutorial/index.html If you do go for it, and come up with any useful advice for converting PerlTk to Tkx, then please share. HTH -- Brian Raven Please consider the environment before printing this e-mail. This e-mail may conta

RE: Extract nested zip file

2010-05-14 Thread Brian Raven
uld be a module that specialises in zip files like Archive::Zip, possibly in combination with Archive::Zip::MemberRead. HTH -- Brian Raven Please consider the environment before printing this email. This e-mail may contain confidential and/or privileged information. If you are not the intended recipi

RE: Use DLL files at Unix server

2010-04-23 Thread Brian Raven
recipients already have Perl installed), have a look at the source filtering modules like Filter::Crypto. HTH -- Brian Raven Please consider the environment before printing this email. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or have r

RE: Use DLL files at Unix server

2010-04-23 Thread Brian Raven
esr/faqs/smart-questions.html>. -- Brian Raven Please consider the environment before printing this email. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, please advise the sender immediately by

RE: parsing email headers

2010-03-24 Thread Brian Raven
t;http://search.cpan.org/search?query=datetime%3A%3Aformat&mode=all>, and on the fourth page I saw DateTime::Format::Mail, which sounds pretty much like what you are asking for. BTW, it seems to be available vie ppm as well. HTH -- Brian Raven Please consider the environment before pri

RE: Perl Regex

2010-02-26 Thread Brian Raven
ser will generally do a more reliable job of parsing XML that regular expressions, even Perl regular expressions. HTH -- Brian Raven Please consider the environment before printing this email. This e-mail may contain confidential and/or privileged information. If you are not the intended

RE: HTML Parsing Question

2010-02-04 Thread Brian Raven
t}; # prints "button _parent value is > HTML::Element=HASH(0x1afa5c4)" > print "button _tag value is " . ${$button}{_tag}; # prints "button _tag value is button" > > $parent = $button->parent; > print "parent tag is " . ${$parent}{_t

RE: Help: Random Read/Write a binary file

2009-12-07 Thread Brian Raven
e 'perldoc -q update'), but given the apparent age of that answer I would add advice to localise file handles and use the 3 arg form of open. If you mean to insert some data into the file then the general answer is to simply read from your original file and create a new output file. HTH -

RE: WIN32::OLE WMI Out params

2009-12-03 Thread Brian Raven
Root->GetChildNodeGroups(\$nodes, TRUE); > > print "Child Group Count: " . $objChildGroups . "\n"; > > print @arrNodes . "\n"; If I am right, and I may well not be, this would probably need to be something like: for my $obj (in $nodes) { print &q

RE: need help installing guitest

2009-11-18 Thread Brian Raven
g and bribes repositories. Which version of Avtivestate perl are you using? Which repositories have you tried? HTH -- Brian Raven This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, please advise the sender

RE: How do I create arrays in OO format?

2009-11-16 Thread Brian Raven
Serguei Trouchelle <> wrote: > Brian Raven wrote: > >> Read the documentation on OO that comes with Perl (perldoc perl$_ >> foreach qw{boot toot tooc bot}). Also Damian Conway's book comes >> highly recommended. I can't remember toe title off-hand, but y

RE: How do I create arrays in OO format?

2009-11-12 Thread Brian Raven
e value > variables, but can't find examples of how to pass arrays or hash > values. > > Any suggestions? Read the documentation on OO that comes with Perl (perldoc perl$_ foreach qw{boot toot tooc bot}). Also Damian Conway's book comes highly recommended. I can't re

RE: Hitting a maximum number of SOCKET connections? Continued...

2009-11-04 Thread Brian Raven
1 works , and has not been regressed.. I have just tried your code on Linux, and it seems to work as expected, i.e. pings seen on the server immediately after they are sent. So you may want to consider switching OS. HTH -- Brian Raven This e-mail may contain confidential and/or privileged i

RE: Hitting a maximum number of SOCKET connections?

2009-11-04 Thread Brian Raven
r scripts, and fixed the issues raised before running them. I strongly suggest that you do the same. -- Brian Raven This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, please advise the sender immediate

RE: Hitting a maximum number of SOCKET connections?

2009-11-03 Thread Brian Raven
quot;), this was increased to 2000 for build 1001, so you might want to upgrade your Perl. HTH -- Brian Raven This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, please advise the sender immedia

RE: How to passing a hex number in Win32::API call

2009-10-27 Thread Brian Raven
FT_LIST_NUMBER_ONLY => 0x8000; my $function = new Win32::API("ftd2xx", "FT_ListDevices", "PPN", "N"); die "Can't import API FT_ListDevices: $!\n" unless defined $function; my $DevBuffer = " " x 80; my $status=$function->Call($DevBuffer, 0 ,F

RE: Strange Perl/Tk action

2009-10-26 Thread Brian Raven
he menu tab. The height of the window remains unchanged > for all > subsequent menu actions. I have printed out the variable containing > the > nominated height of the window before and after making the selection > and it > does not change. I can compensate for this action by

RE: Using .cgi file as form action

2009-10-06 Thread Brian Raven
: {}, $_)} @options); print p(); print submit("Use that"); print end_form; print hr(); } sub output_data { print h2("You selected something"); print "It was ", strong($sel); } -- HTH -- Brian Rav

RE: need help with Tk: I could not figure the error

2009-09-03 Thread Brian Raven
From: Daniel Burgaud [mailto:burg...@gmail.com] Sent: 03 September 2009 03:00 To: Brian Raven Cc: Perl-Win32-Users Subject: Re: need help with Tk: I could not figure the error > Hi > > When I moved all the variables within the subroutines outside, this script suddenly worked f

RE: need help with Tk: I could not figure the error

2009-09-02 Thread Brian Raven
> use strict; perl will give you a clue if you add "use warnings;" here. It will even give some advice if you make it "use diagnostics;". > use Tk; > ... HTH -- Brian Raven This e-mail may contain confidential and/or privileged

RE: need help: TK windows - no task bar icon pls

2009-09-01 Thread Brian Raven
withdraw and Popup, although I can see no documentation for Popup in TopLevel or its obvious base classes. Unless somebody comes up with a better answer, try copying DialogBox.pm, make mods to it and see what happens. If you discover the answer from that, don't forget to let us know what it is.

RE: CPAN install directory usage

2009-07-01 Thread Brian Raven
From: Perl Perl [mailto:perl.solut...@gmail.com] Sent: 01 July 2009 14:37 To: Brian Raven Cc: perl-win32-users@listserv.activestate.com Subject: Re: CPAN install directory usage > Hi Brian Raven, > > I don't know by which way my system admin has install the module

RE: CPAN install directory usage

2009-07-01 Thread Brian Raven
.pl line 5. > > > This is at Windows OS. Could you please help me to overcome this? It is not really clear from the above, but it looks like Tk has not been installed, or at least not properly. The big question is why don't you install it using ppm, rather than from CPAN. It is

RE: :FTP pasv_xfer() using problem

2009-06-18 Thread Brian Raven
server. Perhaps $ftpout? > $lsize = stat("c:/temp/apj_697_1_106ej.zip")->size; > print "SIZE:- $lsize"; > $ftpout->quit() or die "FTP: Couldn't quit."; > $ftpin->quit() or die "FTP: Couldn't quit."; > > > MESSA

RE: LWP Help

2009-06-17 Thread Brian Raven
rom google. > print $content; Just a guess, but are the links in the returned document relative? If so, hava a look at the example code in the doco for HTML::LinkExtor. HTH -- Brian Raven This e-mail may contain confidential and/or privileged information. If you are not the intended recipie

RE: Compilation (Building ) of project once the file is saved + Perl/Tk

2009-06-08 Thread Brian Raven
s. > #system("/View/Vobs>tools/Perl/bin/perl tools/Compile tools/Perl/bin/perl tools/pjtCompile.pm /View/Vobs/ > $Filename"); > } Also, it looks like you are (a) using global variables, or (b) not including 'use strict;' at the start of your code. Try to avoid (a), and

RE: inserting the file paths in between the two arrays ( text widget ) : Perl/TK

2009-06-05 Thread Brian Raven
From: Perl Perl [mailto:perl.solut...@gmail.com] Sent: 05 June 2009 13:16 To: Brian Raven Cc: perl-win32-users@listserv.activestate.com Subject: Re: inserting the file paths in between the two arrays ( text widget ) : Perl/TK > Thanks a lot HTH ( Brian), > > This worked for m

RE: inserting the file paths in between the two arrays ( text widget ) : Perl/TK

2009-06-04 Thread Brian Raven
to append the $path to the array. In which case see 'perldoc -f push'. > #open (FILE,">>f1.txt") or die "Can't open $!"; > #foreach (@File_Path) { > # print FILE $_; > # $t -> insert ("end", $_); > > #} > } HT

RE: Advice requested, porting unix perl app to windows

2009-06-03 Thread Brian Raven
d schedule, and I've been searching CPAN. But before heading > too far down that path, I thought I'd ask the list for advice. There are command line tools in cygwin and putty. There are also perl modules, e.g. Net::SSH2. HTH -- Brian Raven This e-mail may contain confidentia

RE: Activeperl 5.10 + thread + join = random crashes

2009-06-03 Thread Brian Raven
tack. You are aware that Tk is not thread safe? Of course that may not be your problem, but it is a pretty good candidate. In fact Tk can be used in a threaded Perl program, but it must be done with great care. HTH -- Brian Raven This e-mail may contain confidential and/or privileged informati

RE: Activeperl 5.10 + thread + join = random crashes

2009-06-03 Thread Brian Raven
my $id = $thr->tid(); print "Result for thread $id is $result\n"; } select undef, undef, undef, 0.1; } print "All threads finished\n"; } sub threadsub { my $id = threads->tid(); print "Thread $id starting\n"; m

RE: Problem iwth perl tk : Creation of file based on options

2009-05-27 Thread Brian Raven
es-0812/lib/x86_64-linux-thread-multi/Tk/Derived.pm line 306 > main::set_bg at Radio.pl line 26 > Tk::BackTrace at /apps/perl/modules-0812/lib/x86_64-linux-thread-multi/Tk.pm line 124 > Tk::Derived::configure at /apps/perl/modules-0812/lib/x86_64-linux-thread-multi/Tk/Derived.p

RE: question about recursion

2009-05-22 Thread Brian Raven
if anyone has any insights or experience with this, I would be very interested to learn from your experience Without more detail it is hard to say (some example code would be useful here). However, you should be able to use the return value from your recursive sub, rather than a global. HTH -- Bria

RE: LWP Help please

2009-05-18 Thread Brian Raven
less vague. As LWP is mainly concerned with retrieving data, it is unlikely to be involved, as your question seems to be more related to doing something with the data after retrieving it. HTH -- Brian Raven This e-mail may contain confidential and/or privileged information. If you are not t

RE: Win32-TaskScheduler problem with remote systems

2009-05-15 Thread Brian Raven
e > SetAccountInformation and SetTargetComputer functions added. > > Windows XP SP2 > Perl 5.8.8 822 [280952] > Win32-TaskScheduler 2.0.2 > > Any help would be greatly appreciated. This is just a guess, but the example script (http://cpansearch.perl.org/src/UNICOLET/Win32-Task

RE: use system() function

2009-05-13 Thread Brian Raven
Min Jeon, > > Please use back stick operator here, instead of system command, because system command doesn't return > anything. Not so. From 'perldoc -f system': "The return value is the exit status of the program as returned by the "wait" call."

RE: use system() function

2009-05-13 Thread Brian Raven
ontained example script, that we could simply cut&paste and run would be better, along with the output generated when you ran the same code. Also, what happens when you execute those commands manually? HTH -- Brian Raven This e-mail may contain confidential and/or privileged information. If

RE: expanding hash database

2009-04-29 Thread Brian Raven
gt; root --> energy > \-> inorganic > > then adding a subroot to energy > add solar > root --> energy --> solar > \-> inorganic > > and then increasing expansion as needed. Have a look at 'perldoc perldsc' for starters. HTH -- Brian Rave

RE: :Socket question (client receive - when # of bytes to be receivedis NOT known in advance)

2009-04-22 Thread Brian Raven
the socket is closed. For anything more fine grained than that, or it is your responsibility to close the socket, then you will need to know how to recognise when to start and stop reading from the socket, which depends on the protocol that is being used. It can also depend on what else you are

RE: active perl 5.8.8 build 820 inconsistent behavior with $input =;

2009-04-16 Thread Brian Raven
the localised file handle. Or course, if you can install File::Slurp, you don't even need to write one. Also, its better to call subs without the '&' prefix, unless you know what that does, and you need it. HTH -- Brian Raven This e-mail may contain confidential

RE: running a dos program from perl

2009-04-01 Thread Brian Raven
em and can not get even close. I suggest taking a look at 'perldoc perlipc', as well as 'perldoc IPC::Open2' and 'perldoc IPC::Open3'. Installing IPC::Cmd and/or IPC::Run may help simplify things a bit. HTH -- Brian Raven This e-mail may contain confidential and/o

RE: Reset in ANSIColor sets the background to black

2009-04-01 Thread Brian Raven
REEN|BACKGROUND_INTENSITY); # This sets the text color on DOS in red with intensity $console->Attr(FOREGROUND_RED|FOREGROUND_INTENSITY|$BackgroundColor); print "\nError Msg: $error \n"; $console->Attr($CurrentConsoleColor); } 1; HTH -- Brian Raven This e-mail may

RE: what is the most robust and accurate way to determine the BOOTvolume?

2009-03-31 Thread Brian Raven
> $buflen) { die "GetSystemDirectory buffer needs to be at least $result bytes\n"; } print "System directory is ", substr($buf, 0, $result), "\n"; HTH -- Brian Raven This e-mail may contain confidential and/or privileged information. If you are not

  1   2   >