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
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.
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]
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:
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.
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
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
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
>
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
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
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
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
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
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
"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
> 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
> 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
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
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
> ...
> ...
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_
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
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 ..
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
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
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
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
> 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
==
> 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
> 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?
>
>
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
> 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
> 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
> 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
> 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
34 matches
Mail list logo