Re: [Perl-unix-users] Questions of porting Perl from Unix to Windows

2008-01-24 Thread Jenda Krynicky
From: Gary Yang <[EMAIL PROTECTED]> > I need to port my Perl script from Unix to Windows. Can someone tell > me how to figure out which platform I am on? i.e. I need to know which > Perl command can help me determin the platform. Once I know the > platform, I'll code my script as the example bellow

Re: [Perl-unix-users] ParseWords and umlaut

2003-11-25 Thread Jenda Krynicky
From: "Andy Ryan" <[EMAIL PROTECTED]> > I'm using the ParseWords perl module to parse through a csv file. When > it encounters a word in it, specifically one with an umlaut in it, it > creates an empty set for that line in the file. Any suggestions on how > to fix this? Yep. Dumping ParseWords.

Re: [Perl-unix-users] Oracle type validation module

2003-10-29 Thread Jenda Krynicky
From: "Dubcak, Peter" <[EMAIL PROTECTED]> > Does anyone know of a module that can validate a scalar value against > an Oracle data type, e.g. Try to ask in [EMAIL PROTECTED] I think there could be some way. It would not be hard to write something like that yourself. Jenda = [EMAIL PROTECTED]

Re: [Perl-unix-users] Is there a line continuation character in Perl ?

2003-06-25 Thread Jenda Krynicky
From: [EMAIL PROTECTED] What do you mean? You mean something like the stupid Visual Basic's _? SomeVariable = "fooo dfg adfgfg dsfhqwerg" & OtherVariable _ & vbCrLf & "VB is a stupid language said " _ & I You don't need anything like that in Perl:

Re: [Perl-unix-users] Tree in Perl

2003-06-10 Thread Jenda Krynicky
From: Pragneshkumar Gandhi <[EMAIL PROTECTED]> > I wanna to make 3/5 tree in perl > Menas > The depth of tree will be 5 and the max child of each node > will be three. I think you have this wrong. If I remember right 3,5-tree is a tree where each node (except leafs) has between 3 and 5 children.

Re: [Perl-unix-users] How do I control newline (\n) format?

2003-04-04 Thread Jenda Krynicky
From: "EXTERN Chakirov Timour \(TZ CIS; DS/ESQ3\)" <[EMAIL PROTECTED]> > I wrote an utility which is working uder unix and win environment. It > reads some input data file and write results in output files. I want > to get result files having only LF at the end of the line > independently from plat

Re: [Perl-unix-users] memory issues

2003-04-02 Thread Jenda Krynicky
From: "Martin Moss" <[EMAIL PROTECTED]> To: "Perl-Win32-Users \(E-mail\)" <[EMAIL PROTECTED]>, "Perl-Unix-Users \(E-mail\)" <[EMAIL PROTECTED]> Subject:[Perl-unix-users] memory issues Date sent: Wed, 2 Apr 2003 12:12:18 +010

Re: AW: [Perl-unix-users] How do I Join two or more perl modules in o ne file?

2003-03-31 Thread Jenda Krynicky
From: "EXTERN Chakirov Timour \(TZ CIS; DS/ESQ3\)" <[EMAIL PROTECTED]> > Unfortunately proposed approach does not help in my situation. I will > describe my task more deeply, and I hope you could help me to solve > it. > > code structure (comments after # sign): > > main.pl # main perl module >

Re: [Perl-unix-users] grep

2003-03-31 Thread Jenda Krynicky
From: "Mundell, R. \(Ronald\)" <[EMAIL PROTECTED]> > I need to know how to do multiple grep's with a single grep. What do you mean? You mean you want to filter the list using several conditions? @result = grep {condition1($_) and condition2($_) and condition3($_)} @list; Or you want to

RE: [Perl-unix-users] debugging option

2003-01-24 Thread Jenda Krynicky
From: Matt Schneider <[EMAIL PROTECTED]> > There is also a -d option that runs the perl debugger. This is an > option that allows you to step through the running program one line of > code at a time and to things like print to the screen exactly what a > variable contains a particular point. It i

Re: [Perl-unix-users] question about Mail::Sender

2003-01-09 Thread Jenda Krynicky
From: "Merijn van den Kroonenberg" <[EMAIL PROTECTED]> > Ah thank you for the fast response. > > As I am using perl on linux i could remove this completely, right? Yes. Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to wine, women and song, wizards are allowed t

Re: [Perl-unix-users] question about Mail::Sender

2003-01-08 Thread Jenda Krynicky
From: "Merijn van den Kroonenberg" <[EMAIL PROTECTED]> > I am running perl 5.8.0 on linux and i am using the Mail::Sender > module. Whenever I use this module i get the following warning: > > Unknown PerlIO layer 'raw:perlio' at > /usr/lib/perl5/site_perl/5.8.0/Mail/Sender.pm line 21 > > It seems

Re: [Perl-unix-users] CGI and client side

2003-01-07 Thread Jenda Krynicky
From: "Mundell, R. \(Ronald\)" <[EMAIL PROTECTED]> > I know that when one write an app under perl it runs on the web > server. is it not possible to write a app in perl to run on both the > server and the client > > Ronald Well ... if you can force all users to use the MS Internet Explorer and m

Re: [Perl-unix-users] how to copy a file on windows

2002-11-07 Thread Jenda Krynicky
From: Michael Meltzer <[EMAIL PROTECTED]> > I am new to perl. > on a windows box i want to copy a file to an UNC path. > on ActiveState I searched for modules win32::filecopy but coundn't > find it. so were can this modul be found or should I use a different > modul ? File::Copy

RE: [Perl-unix-users] FW: Com DLL

2002-10-09 Thread Jenda Krynicky
"Mundell, R. \(Ronald\)" <[EMAIL PROTECTED]> wrote: > Have you done something like this before? > > -Original Message----- > From: Jenda Krynicky [mailto:[EMAIL PROTECTED]] > I'm afraid you will have to run one script under unix and another > under Win

Re: [Perl-unix-users] FW: Com DLL

2002-10-09 Thread Jenda Krynicky
> I am trying to load a Microsoft DLL via a Perl CGI script out of UNIX; > I am trying to make use of a WEB page to access a specific DLL on the > MS side. If any body knows how to load a MS COM DLL under these > circumstances please could you give me an idea of how to get this > working? I unders

Re: [Perl-unix-users] Oracle Database Access

2002-06-18 Thread Jenda Krynicky
> I would like to access Oracle database from my perl program for > performing various operations. I am working on HP-UX . Do any of > you guys know of the modules available at CPAN which are better > and reliable for achieving this. Your suggestions will be great help > to me. DBI a

Re: [Perl-unix-users] Display parent program (.pl) from a package (.pm)?

2002-06-07 Thread Jenda Krynicky
From: "Kirk" <[EMAIL PROTECTED]> > Not exactly. There are several dozen parent programs that call a > single child program (a global DBI handle). I've just discovered that > many of the calling parent programs are using "require". So what I > have is: > > #!/usr/local/bin/perl > # filename: p

Re: [Perl-unix-users] Display parent program (.pl) from a package (.pm)?

2002-06-07 Thread Jenda Krynicky
From: "Kirk" <[EMAIL PROTECTED]> > Is there a system variable or some clever way to view all the > "currently" running programs from within a package? This is a > confusing question so here's an example. > > I have a program called "parent.pl": > > #!/usr/local/bin/perl > use child > ... > ...

Re: [Perl-unix-users] Sourcing variable in perl?

2002-03-18 Thread Jenda Krynicky
From: "Craig Sharp" <[EMAIL PROTECTED]> > Jenda and Bill, > > Ok, I went out and generated a list of the environment variables and > created a file with the entries as follows (just a few lines): > > $ENV{'PS_HOME'}='/psoft/ps8prd' unless (defined $ENV{'PS_HOME'}); > $ENV{'PS_

Re: [Perl-unix-users] Sourcing variable in perl?

2002-03-17 Thread Jenda Krynicky
From: "Craig Sharp" <[EMAIL PROTECTED]> > In a shell programming, I can run a script with a period-space in > front of the script: > > Eg: . script_name.scr > > This will cause the variables to be sourced to the parent process. In > other words, any variables that are created within the child

Re: [Perl-unix-users] Is there a regex trick for this?

2002-03-11 Thread Jenda Krynicky
From: "Michael Marziani" <[EMAIL PROTECTED]> > I have an array @exclude_dirs that I want my list of directories matched > against, and if it matches, then I want to go on to the next one. I > thought I saw someone do something like: > > if( $line =~ /@exclude_dirs/ ) { > next; > } Well ..

Re: [Perl-unix-users] Mail Attactments

2002-03-03 Thread Jenda Krynicky
From: "Gordon Stewart" <[EMAIL PROTECTED]> > I have written a webmail cgi script. Now I would like to send and > recieve attachments within this cgi program. Can anyone suggest any > CPAN modules to acheive this? Any examples of using the modules > would be helpful. > > I a

Re: [Perl-unix-users] Linux & alter/generate MS-Word document

2002-02-22 Thread Jenda Krynicky
From: [EMAIL PROTECTED] > We have a Linux webserver with Apache. Is it possible to use a MS Word > document and alter it's contents on the server itself. I know that if > you have IIS on a NT server you can use OLE to do some tricks in a > Word document. Perhaps it is possible to encode a .doc fil

Re: [Perl-unix-users] Simple code to send e-mail vi sendmail

2002-02-20 Thread Jenda Krynicky
From: Krzysztof Kocjan <[EMAIL PROTECTED]> > Hi > > I need simple code to send e-mail from perl script using sendmail > program (Linux RedHat). I don't use SMTP server. I tried to use > SOAP::Lite with sendmail but I've got lot of errors, so I lost it. I > tried to use system() perl function to

Re: [Perl-unix-users] Mime Types in emails

2002-01-16 Thread Jenda Krynicky
From: "Geoff Ellis" <[EMAIL PROTECTED]> > I have a small problem which maybe a little OT to the unix list... > I've got a small app which runs on debian linux, which polls a mail box and > foreach message that arrives I grab the subject line and the body data. > These emails are

Re: [Perl-unix-users] DBM functionality via tie & untie

2001-10-03 Thread Jenda Krynicky
> I'm using 'tie' & 'untie' in manipulating DBM files for IPC > (Inter-Process Communication). > I know I have to implement a 'locking' strategy to ensure not to > corrupt my DBM files. Use DB_file with one of it's wrappers. There you already have the locking done for you. And right. Jenda ==

Re: [Perl-unix-users] Valid Email Check

2001-08-22 Thread Jenda Krynicky
> My current problem is I am testing an inputed email address > to verify that it is a valid string. Now by using this code > snippet: What about using a module : http://search.cpan.org/search?dist=Email-Valid if you look into the module you will see that it's not as simple as it may look. Je

Re: [Perl-unix-users] checking a file for an existing string

2001-08-20 Thread Jenda Krynicky
> Anyhow, I am trying to open a static file with names and email > addresses in it and to make sure there are no duplicate email > addresses before adding the email address to the list. > > Could someone explain to me in kindergarten terms how and why > I do each step to make this happen? > >

Re: [Perl-unix-users] Telnet Command bnot works,

2001-07-11 Thread Jenda Krynicky
From: Ben Wheeler <[EMAIL PROTECTED]> > Don't you need to escape the "#" symbol? If you don't, everything > after it is a comment. > > Ben You mean treated like a comment by the shell? Well I'm not a unix guy so I can't tell for sure. If you'd enter the command on the prompt b

RE: [Perl-unix-users] Login Security

2001-06-08 Thread Jenda Krynicky
> on the program line > $t= new Net::Telnet (Timeout=>10; Prompt => '/bash\$ $/'); > > What is the Prompt portion mean? I think it's saying look for a bash$ prompt minus >the $. I don't know. Please explain. The Prompt is a regular expression (that's why there are the slashes) The module will

RE: [Perl-unix-users] Login Security

2001-06-08 Thread Jenda Krynicky
> I disagree. The password would be sent in the clear to the cgi script. At > that point, it is too late to benefit from the SSL encryption; you might as > well not have it. > -- > Mark Thomas[EMAIL PROTECTED] I think you misread the original post. Byron Wise says: > Recentl

Re: [Perl-unix-users] Net::Telnet

2001-06-07 Thread Jenda Krynicky
> Hello, Mr. Zalewski, > > I just checked one of my scripts that uses Net::Telnet, and I invoked the > package without parentheses, a la > > use Net::Telnet; > > rather than the way you have it, > > use Net::Telnet (); > > so perhaps give that a try? Cheers, > > -Mark Beihoffer That should

Re: [Perl-unix-users] Net::Telnet

2001-06-06 Thread Jenda Krynicky
> I'm trying to set up Net::Telnet so I may or may not have done it correctly. It >also gave an example program that I tried, but I got an error. > Example program: > use Net::Telnet (); > $t = new Net::Telnet (Timeout => 10, Prompt => '/bash\$ $/'); > $t->open ("sparky"); > $t->login($username