Ok, I've reached the level, when I want to do perl modules. I've seen
tutorials with the `h2xs' approach, but the problem is that I don't know what
it EXACTLY does.
I'd like to write a code shared among several simple scripts, as a NON-OO
module, used in single program packege. I'd be happy with
Levente Kovacs wrote:
Ok, I've reached the level, when I want to do perl modules. I've seen
tutorials with the `h2xs' approach, but the problem is that I don't know what
it EXACTLY does.
Exactly? Well, it creates a skeleton. See for instance the
Step-by-step: Making the module section in
On Fri, May 2, 2008 at 2:54 PM, Levente Kovacs [EMAIL PROTECTED] wrote:
Ok, I've reached the level, when I want to do perl modules. I've seen
tutorials with the `h2xs' approach, but the problem is that I don't know what
it EXACTLY does.
Try this simple one:
On 5/1/08, Rob Dixon [EMAIL PROTECTED] wrote:
Vinayak dutt wrote:
As am new to Perl and their is a requirment which says -
1. There exists a .zip which contains folders and file.
2. Search for 'makefile' in the respective folders and store them in a
text
file.
3. And search
Hello,
I'm a Perl uber-novice and I'm trying to compare two files in order to
exclude items listed on one file from the complete list on the other
file. What I have so far prints out a third file listing everything
that matches the exclude file from the complete file (which I'm hoping
will be a
On Thu, May 1, 2008 at 4:09 PM, rubinsta [EMAIL PROTECTED] wrote:
Hello,
I'm a Perl uber-novice and I'm trying to compare two files in order to
exclude items listed on one file from the complete list on the other
file. What I have so far prints out a third file listing everything
that
Hi,
On Fri, 2 May 2008 16:32:32 +0800
J. Peng [EMAIL PROTECTED] wrote:
#
# the third way
#
Thanks for your answer, approach #3 works good. That is what I wanted.
Cheers,
--
Levente Kovacs [EMAIL PROTECTED]
--
To unsubscribe, e-mail:
Hello,
Today I write my perls scripts with a simple editor.
I found this link http://www.enginsite.com/Perl.htm, but it run only in Windows.
This link http://www.solutionsoft.com/perl.htm, contain the for linux, but have
to buy.
Anybody knows a simple and good IDE Perl for Linux ?
By,
Faria
On Fri, May 2, 2008 at 11:04 PM, Rodrigo Tavares
[EMAIL PROTECTED] wrote:
Hello,
Today I write my perls scripts with a simple editor.
I found this link http://www.enginsite.com/Perl.htm, but it run only in
Windows.
This link http://www.solutionsoft.com/perl.htm, contain the for linux,
Now *THAT* is helpful! Descriptive yet succinct w/ references. Methodical.
Awesome.
--Ken Wolcott
On Thu, May 1, 2008 at 6:13 PM, Chas. Owens [EMAIL PROTECTED] wrote:
On Thu, May 1, 2008 at 8:45 PM, Richard Lee [EMAIL PROTECTED] wrote:
snip
ls -ltr | tail -100 | cut -d' ' -f13
snip
On Fri, May 2, 2008 at 11:04 AM, Rodrigo Tavares
[EMAIL PROTECTED] wrote:
Hello,
Today I write my perls scripts with a simple editor.
I found this link http://www.enginsite.com/Perl.htm, but it run only in
Windows.
This link http://www.solutionsoft.com/perl.htm, contain the for linux,
Levente Kovacs wrote:
J. Peng wrote:
On Fri, May 2, 2008 at 2:54 PM, Levente Kovacs [EMAIL PROTECTED] wrote:
I'd like to write a code shared among several simple scripts, as a NON-OO
module, ...
snip
#
# the third way
#
Both the first way
On Fri, 02 May 2008 18:33:07 +0200
Gunnar Hjalmarsson [EMAIL PROTECTED] wrote:
Levente Kovacs wrote:
J. Peng wrote:
On Fri, May 2, 2008 at 2:54 PM, Levente Kovacs
[EMAIL PROTECTED] wrote:
I'd like to write a code shared among several simple scripts, as
a NON-OO module, ...
snip
On Fri, 2 May 2008 08:04:04 -0700 (PDT)
Rodrigo Tavares [EMAIL PROTECTED] wrote:
Anybody knows a simple and good IDE Perl for Linux ?
Use gvim.
--
Levente Kovacs [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Sat, May 3, 2008 at 1:26 AM, Levente Kovacs [EMAIL PROTECTED] wrote:
The more language I learn, the more I
think C(++) is the most flexible language.
This is most probably you know C(++) better than others.
For me I think Perl is flexible enough.
--
J. Peng - [EMAIL PROTECTED]
Hi: I am trying to build a simple perl/expect program which will telnet, run a
command and provide me the result of the command in a string or array to
process within the script. I have gotten so far as the script telnets, runs the
command the prints the result in stdout. I can't seem to figure
Rodrigo Tavares schreef:
Anybody knows a simple and good IDE Perl for Linux ?
http://e-p-i-c.sourceforge.net/
--
Affijn, Ruud
Gewoon is een tijger.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
Please help me with this another misunderstanding of my perl.
My plan is to make input record separator to \n\n so that file records
are separated by blank space.. and then
collect information and push them into array by joining.
But when I run this, it says uninitilized values... I am doing
On Fri, May 2, 2008 at 5:55 PM, Richard Lee [EMAIL PROTECTED] wrote:
snip
while (FH) {
local $/ = \n\n;
snip
}
snip
You want $/ to have an effect on FH, but it is localized to inside
of the loop. You need to say
{
local $/ = \n\n;
while (FH) {
}
}
--
Chas. Owens
Chas. Owens wrote:
On Fri, May 2, 2008 at 5:55 PM, Richard Lee [EMAIL PROTECTED] wrote:
snip
while (FH) {
local $/ = \n\n;
snip
}
snip
You want $/ to have an effect on FH, but it is localized to inside
of the loop. You need to say
{
local $/ = \n\n;
while (FH)
Many thanks, Chas. These are all very helpful (and educational!)
suggestions. I adapted your example like so (specifying the all.txt
on the command-line):
#!/usr/bin/perl
use strict;
use warnings;
open my $ex, , exclude.txt or die $!;
open my $out, , exTest.txt or die $!;
my %exists;
Richard Lee schreef:
while (FH) {
local $/ = \n\n;
++$count;
That $count is already in $. (see perlvar)
my $fgh =~ /fgh\s+(\S+)/;
my $ijk =~ /ijk\s+(\S+)/;
my $lmk =~ /lmk\s+(\S+)/;
You might want to use a hash:
$fil{$1} = $2 while
Gvim or vim have an add on called perl-support that provides some very handy
IDE-like features.
Best regards,
J. D.
On 5/2/08, Dr.Ruud [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
Rodrigo Tavares schreef:
Anybody knows a simple and good IDE Perl for Linux ?
Richard,
The unitalized warnings are probably coming from one or more of $fgh, $ijk,
$lmk being undefined because the regex failed to match anything. You can test
this by trying to print the values of these variables.
They are probably undefinately because the record seperator is being set
On Fri, May 2, 2008 at 10:44 AM, rubinsta [EMAIL PROTECTED] wrote:
snip
Any thoughts as to why
some of the matches are getting missed?
snip
Not off hand. I will extract your code and do some tests. Can you
send me your data or is it sensitive?
snip
Just out of beginner curiosity, why did
On Fri, May 2, 2008 at 5:08 PM, Joshua Hoblitt [EMAIL PROTECTED] wrote:
snip
They are probably undefinately because the record seperator is being set
lexically inside of the loop (and thus won't apply to the outer while).
Please
consider this code:
local $/ = \n\n;
snip
An
GNU Emacs my friend. GNU Emacs.
On Sat, May 3, 2008 at 6:22 AM, J. D. [EMAIL PROTECTED] wrote:
Gvim or vim have an add on called perl-support that provides some very
handy
IDE-like features.
Best regards,
J. D.
On 5/2/08, Dr.Ruud [EMAIL PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED]
Chas. Owens wrote:
On Fri, May 2, 2008 at 5:08 PM, Joshua Hoblitt [EMAIL PROTECTED] wrote:
snip
They are probably undefinately because the record seperator is being set
lexically inside of the loop (and thus won't apply to the outer while). Please
consider this code:
local $/ =
eko hermiyanto wrote:
GNU Emacs my friend. GNU Emacs.
On Sat, May 3, 2008 at 6:22 AM, J. D. [EMAIL PROTECTED] wrote:
Gvim or vim have an add on called perl-support that provides some very
handy
IDE-like features.
Best regards,
J. D.
On 5/2/08, Dr.Ruud [EMAIL PROTECTED] [EMAIL PROTECTED]
On Sat, May 3, 2008 at 9:53 AM, Richard Lee [EMAIL PROTECTED] wrote:
Can you tell me what extra benefit emacs will provide to perl programmar?
I have sawn that:
Emacs == Emacs Makes a Computer Slow
:-)
--
J. Peng - [EMAIL PROTECTED]
Professional Chinese Squid supports
I'm trying to include a PDF image both inline and as an attachment to an
HTML email. The MIME::Lite module supports this, and the documentation
even gives an example:
http://tinyurl.com/uemf7
However, when I try this with the code below, the inline image doesn't
display. (The attachment is
31 matches
Mail list logo