Re: clearing a variable/array

2002-02-28 Thread Kuhnibert
> HI, > > How can you clear the value of a variable or array? > > $variable = ""; ? ### yo > @array = "" ? ### use @array=(); instead (empy list) ## if you want get rid of the variable itself, use undef hth till ___ Perl-Win32-Users mailing

remotely invoked win32 popup box

2002-02-22 Thread Kuhnibert
hi, i want a remote perl application to pop up a information window on the client's desktop as it's more direct than sending this info by mail plus it doesn't pollute the user's box! the only way which jumps into my mind is to use novell's broadcast message service (we're running netware 4.x), h

updating date in a Tk window

2002-01-24 Thread Kuhnibert
g'morning, i have a Tk application with a Label widget just diplaying the current date $date = "Date: " . localtime(); $main->Label(-textvariable => \$date)->pack(); of course it only gets updated when $date is *actively* changed, so i was wondering how to tell Perl that it should change 'date'

Re: yet another regex issue?

2002-01-16 Thread Kuhnibert
@f produces the following output char=a, col=10, row=1 char=b, col=19, row=1 char=c, col=10, row=2 char=d, col=20, row=2 char=e, col=28, row=2 char=f, col=10, row=3 Tim "Kuhnibert" <[EMAIL PROTECTED]> Sent by: [EMAIL

yet another regex issue?

2002-01-16 Thread Kuhnibert
ok guys, i need a starter on this one. have a file which looks like this name: @a age: @b gender: @c bla: @d blub @e blabla: @f and so on ... the @ signs are placeholders for a template and mark the position for later entries. they have always 1 alphanumeric digit, followed by either one

Re: How to install Win32::API ????

2001-12-29 Thread Kuhnibert
either nmake (Win32::API requires a compiler AFAIK) or get the ppd file from http://www.activestate.com/PPMPackages/5.6plus/ which you can install using ppm (and w/o a compiler) HTH till > Hi All, > > I have downloaded Win32-API-0.20.zip to install win32::API module on > windows. I did Perl Mak

Re: Using of .netrc-File

2001-12-12 Thread Kuhnibert
Subject: Using of .netrc-File > I want tp use Net::FTP and Net::Netrc for the filetransfer. On UNIX it > works properly. However, if I take the same script on NT the lookup of the > login information does not work. Where do I have to store the .netrc file? > Can somone show me an ftp-script with

Re: multiple file downloads using ftp in perl-win32.

2001-11-26 Thread Kuhnibert
> I want to use ftp for downloading multiple files in > perl-win32 system. I am working in ActivePerl. > > since I am working in Win2k, I am trying to write > alternative to .netrc as below. > > > my perl script calls a download.bat. > > The download.bat contains: > ftp -s:ftpcmds.txt servertoac

Re: Perl from another machine

2001-11-22 Thread Kuhnibert
> Hi! > > I have this question. If I have perl installed on a machine under a network, > can I invoque and install perl scripts from another machine or do I have to > install perl in every machine that I want to use perl. > it's sufficient to have it installed on a network drive, i usually put a

Net::SMTP and system msg

2001-11-21 Thread Kuhnibert
hi, when i create a new Net::SMTP object i do receive the following sytem error C:\temp\reasoncode>perl -MNet::SMTP -e "$n=Net::SMTP->new('194.55.1.1');" Das System kann den angegebenen Pfad nicht finden. this is german for "the system cannot find the specified path", for example the same msg

Re: Looking for Config:IniFiles

2001-11-15 Thread Kuhnibert
Does anyone know where I can find a ppd for Config:IniFIles? I have a script that requires it. I have downloaded the tar.gz, but, being a newbie to Perl, down really know how to install the module without ppm. ### shouldn't require compilation, simply change to your ...\perl\site\lib directory,

Re: RE:Perl & rename File

2001-11-14 Thread Kuhnibert
> Hi,I have a perl tk application that create a file c:/cygwin_syslog.txt. > I have this file c:/cygwin_syslog.txt, How I can do to verify if this file > exists at the init of my application, if it exists I would rename it in > c:/cygwin_syslog.bck0, and recreate one with the same name ie cygwi

Re: help using ~s/(\w+)/\L$1/g ; ~s/(\w+)/\u$1/g ;

2001-07-05 Thread Kuhnibert
hi, 'use local' resp. check out the perllocale manpage (perldoc perlocale) (...) Thanks to LC_CTYPE, depending on your locale setting, characters like 'æ', 'ð', 'ß', and 'ø' may be understood as \w characters. The LC_CTYPE locale also provides the map used in transliterating characters between l

Re: Re:dynamic menu

2001-07-05 Thread Kuhnibert
http://search.cpan.org/search?mode=module&query=driveinfo HTH, till - Original Message - From: "Jorge Goncalvez" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 05, 2001 10:51 AM Subject: Re:dynamic menu > > - Begin Forwarded Message - > > Date:

Re: Re:Refresh

2001-07-03 Thread Kuhnibert
hi, don't know whether it works for you, but i have a listbox widget which i use as a kind of log display in my TK window, and every time a new entry is added i call the raise method so the entry comes into effect immediatley ... sub logupd { my $msg = shift; $listBox->insert('end',$msg)

Re: filehandle to both STDOUT and file

2001-07-03 Thread Kuhnibert
pear to be what i really want (though is looks kind of > > close). something like the unix 'tee' command but we're on win32 here, > > unfortunately > > Kuhnibert, > > http://search.cpan.org/search?mode=module&query=tee > > #3 looks good: > >

Re: Re:Open a file and read it

2001-07-02 Thread Kuhnibert
if the file ain't to big you can read it into an array first and then access the arrays' elements with negative values: $FILE='c:\\temp\\tk.txt';· open FILE;· @lines = ;· print $lines[-1]; ## prints only last line· for ($i=-5; $i < 0; $i++) { print $lines[$i] } ; ## print last 5 lines (late

Re: Minimizing the command window when a Perl script runs . . . . .

2001-07-02 Thread Kuhnibert
Title: Minimizing the command window when a Perl script runs . . . . .   hi,   if you have a (desktop/startemenu-) shortcut for your perl application (f.i. pointing to "c:\perl\bin\perl.exe c:\scripts\myscript.pl") you can easily change the size of the resulting window by ammending the

Re: how to access..to Access

2001-06-28 Thread Kuhnibert
you can access the database via ODBC by either using Win32::ODBC or DBI / DBD::ODBC the link below appears to be a good starter for the latter The Perl You Need to Know: Part 6 "Dabbling in Live Databases: Microsoft Access" http://wdvl.com/Authoring/Languages/Perl/PerlfortheWeb/index6.html HTH

Re: Mapping a network drive from Perl

2001-06-20 Thread Kuhnibert
Title: Re: Mapping a network drive from Perl 1. Has anyone had success in mapping a 'public' drive on Windows using 'Samba'; if so could you explain how you did it?? ### yup! cannot remeber the whole server setup procedures on the linux side (smb.cnf), but i'm sure you'll find all you