[23994] in Perl-Users-Digest
Perl-Users Digest, Issue: 6195 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Mar 1 03:07:02 2004
Date: Mon, 1 Mar 2004 00:05:09 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Mon, 1 Mar 2004 Volume: 10 Number: 6195
Today's topics:
Re: CASHITS,COM-WHAT A SCAM <matthew.garrish@sympatico.ca>
Re: EOL Anchor under Windows <arifi@tnn.net>
Re: EOL Anchor under Windows <jeffplus@comcast.net>
Re: EOL Anchor under Windows <arifi@tnn.net>
Re: EOL Anchor under Windows <tdavis@gearbox.maem.umr.edu>
Re: EOL Anchor under Windows <gnari@simnet.is>
Re: EOL Anchor under Windows <arifi@tnn.net>
Re: EOL Anchor under Windows <arifi@tnn.net>
Re: EOL Anchor under Windows <tadmc@augustmail.com>
Re: EOL Anchor under Windows <arifi@tnn.net>
Re: EOL Anchor under Windows <cbfalconer@yahoo.com>
Re: EOL Anchor under Windows <gnari@simnet.is>
Re: EOL Anchor under Windows <jurgenex@hotmail.com>
Getting status/response codes in Perl (Ali)
Re: Getting status/response codes in Perl <gnari@simnet.is>
Re: GUI wrapper/compiler with Perl <ceo@nospan.on.net>
Re: how die in AUTOLOAD (Anno Siegel)
Opening a unique dat file for each user <arthur0421@163.com>
Re: Opening a unique dat file for each user <dave@dave.org.uk>
Re: Opening a unique dat file for each user <arthur0421@163.com>
perl::api2 pdf problem... (michael vernersen)
Re: perl::api2 pdf problem... <matthew.garrish@sympatico.ca>
Re: perl::api2 pdf problem... (michael vernersen)
Re: regex <tadmc@augustmail.com>
Re: regex <jurgenex@hotmail.com>
Re: regex <mgjv@tradingpost.com.au>
Re: using perl script to compile java thumb_42@yahoo.com
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sun, 29 Feb 2004 11:04:22 -0500
From: "Matt Garrish" <matthew.garrish@sympatico.ca>
Subject: Re: CASHITS,COM-WHAT A SCAM
Message-Id: <54o0c.66$JZ6.21150@news20.bellglobal.com>
"scam" <scam@scam.net> wrote in message
news:4041f8b8$1@newsgate.hknet.com...
>
> PLEASE NOTE SERIOUSLY
>
> Indeed, Web sites that loudly clamour:
>
> "Make $3,000+ a MONTH in under an HOUR a day"
>
> should be held to higher standards than those
> who believe them.
>
LOL! That's the funniest spam message I've ever read... : )
Matt
------------------------------
Date: 29 Feb 2004 18:55:52 +0200
From: Arifi Koseoglu <arifi@tnn.net>
Subject: Re: EOL Anchor under Windows
Message-Id: <u65dpesfb.fsf@smtp.tnn.net>
Jeff Schwab wrote:
>One character of punctuation, followed by three alphanumeric
>characters. The meanings of the named character classes depend on
>locale and encoding.
Thanks Jeff.. What do you say about the $ at the end of the regex - should
it not cause this regex to match only (and always) at the ends of lines?
As to Gunnar Hjalmarsson's comments
I am *not* using any language, just plain egrep in a bash shell.
The reason I selected these newsgroups is that these seem to be the
ones where there is discussion is going on regular expressions.
Best,
-arifi
------------------------------
Date: Sun, 29 Feb 2004 12:28:19 -0500
From: Jeff Schwab <jeffplus@comcast.net>
Subject: Re: EOL Anchor under Windows
Message-Id: <oLmdna0VUvhGvN_d4p2dnA@comcast.com>
Arifi Koseoglu wrote:
>>> What is
>>>
>>> grep --extended-regexp --ignore-case '[[:punct:]]{1}[[:alnum:]]{3}$'
>>>
>>> supposed to match?
>
>>One character of punctuation, followed by three alphanumeric
>>characters. The meanings of the named character classes depend on
>>locale and encoding.
>
> Thanks Jeff.. What do you say about the $ at the end of the regex - should
> it not cause this regex to match only (and always) at the ends of lines?
Yes, sorry I missed that.
------------------------------
Date: Sun, 29 Feb 2004 19:46:02 +0200
From: "Arifi Koseoglu" <arifi@tnn.net>
Subject: Re: EOL Anchor under Windows
Message-Id: <c1t8hr$1m2m4l$1@ID-213322.news.uni-berlin.de>
"Jeff Schwab" <jeffplus@comcast.net> wrote in message
news:oLmdna0VUvhGvN_d4p2dnA@comcast.com...
> >>> grep --extended-regexp --ignore-case '[[:punct:]]{1}[[:alnum:]]{3}$'
> >>>
> > Thanks Jeff.. What do you say about the $ at the end of the regex -
should
> > it not cause this regex to match only (and always) at the ends of lines?
>
> Yes, sorry I missed that.
>
Well, but it does not. The moment I put the $ to the end, it does not match
anything,
although the all matches without the $ are at EOL.
???
------------------------------
Date: Sun, 29 Feb 2004 12:24:27 -0600
From: Ted Davis <tdavis@gearbox.maem.umr.edu>
Subject: Re: EOL Anchor under Windows
Message-Id: <ecb4401h3qord1v7c62mdg77baisq6rpe1@4ax.com>
On 29 Feb 2004 18:55:52 +0200, Arifi Koseoglu <arifi@tnn.net> wrote:
>
>Jeff Schwab wrote:
>>One character of punctuation, followed by three alphanumeric
>>characters. The meanings of the named character classes depend on
>>locale and encoding.
>
>Thanks Jeff.. What do you say about the $ at the end of the regex - should
>it not cause this regex to match only (and always) at the ends of lines?
>
>
>As to Gunnar Hjalmarsson's comments
>
>I am *not* using any language, just plain egrep in a bash shell.
>The reason I selected these newsgroups is that these seem to be the
>ones where there is discussion is going on regular expressions.
If you are not using a programming language, then posting to a
programming group is improper. Since the message has nothing to do
with awk or Perl, posting to those groups is also improper.
You are unnecessarily antagonizing people who are reading the message
in those groups and are trying to make some sense out of it, but can't
because you cross posted to groups that have nothing to do with the
subject.
T.E.D. (tdavis@gearbox.maem.umr.edu - e-mail must contain "T.E.D." or my .sig in the body)
------------------------------
Date: Sun, 29 Feb 2004 18:19:59 -0000
From: "gnari" <gnari@simnet.is>
Subject: Re: EOL Anchor under Windows
Message-Id: <c1taei$47v$1@news.simnet.is>
"Arifi Koseoglu" <arifi@tnn.net> wrote in message
news:c1srjo$1ip48q$1@ID-213322.news.uni-berlin.de...
[question about $ anchor with grep]
> Environment: W2K + cygwin
without having experience with cygwin, may i nevertheless suggest
that your problem is that your lines are terminated with \r\n, but the grep
assumes \n.
in that case your options may be to choose one of:
a) replace the grep command with a perl commandline
b) remove \r from the file befor the grep
c) change the regex to end with '.$' instead of '$'
d) use the -P option with grep, which will allow to use '\r$'
gnari
------------------------------
Date: Sun, 29 Feb 2004 21:12:05 +0200
From: "Arifi Koseoglu" <arifi@tnn.net>
Subject: Re: EOL Anchor under Windows
Message-Id: <c1tdig$1mt8r4$1@ID-213322.news.uni-berlin.de>
I see.
I will really appreciate if you inform me on what group to consult for
issues on regular expressions.
On the other hand, to summarize today:
1. awk and perl do not have anything to do with regular expressions.
2. regular expressions are not related to programming
3. gnu.utils.help group does not have anything to do with the behavior of
gnu grep.
ok...
Thanks for the information.
"Ted Davis" <tdavis@gearbox.maem.umr.edu> wrote in message
news:ecb4401h3qord1v7c62mdg77baisq6rpe1@4ax.com...
> On 29 Feb 2004 18:55:52 +0200, Arifi Koseoglu <arifi@tnn.net> wrote:
>
> If you are not using a programming language, then posting to a
> programming group is improper. Since the message has nothing to do
> with awk or Perl, posting to those groups is also improper.
>
> You are unnecessarily antagonizing people who are reading the message
> in those groups and are trying to make some sense out of it, but can't
> because you cross posted to groups that have nothing to do with the
> subject.
>
>
> T.E.D. (tdavis@gearbox.maem.umr.edu - e-mail must contain "T.E.D." or my
.sig in the body)
------------------------------
Date: Sun, 29 Feb 2004 21:15:48 +0200
From: "Arifi Koseoglu" <arifi@tnn.net>
Subject: Re: EOL Anchor under Windows
Message-Id: <c1tdpb$1llff9$1@ID-213322.news.uni-berlin.de>
Thanks gnari, really appreciated.
"gnari" <gnari@simnet.is> wrote in message
news:c1taei$47v$1@news.simnet.is...
> "Arifi Koseoglu" <arifi@tnn.net> wrote in message
> news:c1srjo$1ip48q$1@ID-213322.news.uni-berlin.de...
>
> [question about $ anchor with grep]
> > Environment: W2K + cygwin
>
> without having experience with cygwin, may i nevertheless suggest
> that your problem is that your lines are terminated with \r\n, but the
grep
> assumes \n.
>
> in that case your options may be to choose one of:
> a) replace the grep command with a perl commandline
> b) remove \r from the file befor the grep
> c) change the regex to end with '.$' instead of '$'
> d) use the -P option with grep, which will allow to use '\r$'
>
> gnari
>
>
>
>
------------------------------
Date: Sun, 29 Feb 2004 13:36:40 -0600
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: EOL Anchor under Windows
Message-Id: <slrnc44fq8.ian.tadmc@magna.augustmail.com>
Arifi Koseoglu <arifi@tnn.net> wrote:
> I see.
I don't think you do.
> I will really appreciate if you inform me on what group to consult for
> issues on regular expressions.
That depends on which dialect of regular expressions you are using.
awk's are different from Perl's. Perl's are different from grep(1)'s. etc...
It doesn't help to solve your problem if the solution involves
a dialect that you are not using.
> On the other hand, to summarize today:
>
> 1. awk and perl do not have anything to do with regular expressions.
Yes they do, and nobody said that they didn't.
It is your _question_ that has nothing to do with the regular expressions
used by awk or Perl.
You seem to have a question about some version of grep that runs
on Windows. grep is not awk. grep is not Perl.
> 2. regular expressions are not related to programming
You are making stuff up, or I missed where someone has said that.
_You_ said you are not using any language. (but you are. you are
using some regular expression language or other...)
> 3. gnu.utils.help group does not have anything to do with the behavior of
> gnu grep.
You are making more stuff up, or I missed where someone has said that too.
I saw no followups mentioning gnu.utils.help.
> Thanks for the information.
Uh huh.
[ snip foolish TOFU ]
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: Sun, 29 Feb 2004 23:40:58 +0200
From: "Arifi Koseoglu" <arifi@tnn.net>
Subject: Re: EOL Anchor under Windows
Message-Id: <c1tm9v$1lsr0n$1@ID-213322.news.uni-berlin.de>
OK.
Cheers!
"Tad McClellan" <tadmc@augustmail.com> wrote in message
news:slrnc44fq8.ian.tadmc@magna.augustmail.com...
> Arifi Koseoglu <arifi@tnn.net> wrote:
>
> > I see.
>
>
> I don't think you do.
>
>
> > I will really appreciate if you inform me on what group to consult for
> > issues on regular expressions.
>
>
> That depends on which dialect of regular expressions you are using.
>
> awk's are different from Perl's. Perl's are different from grep(1)'s.
etc...
>
> It doesn't help to solve your problem if the solution involves
> a dialect that you are not using.
>
>
> > On the other hand, to summarize today:
> >
> > 1. awk and perl do not have anything to do with regular expressions.
>
>
> Yes they do, and nobody said that they didn't.
>
> It is your _question_ that has nothing to do with the regular expressions
> used by awk or Perl.
>
> You seem to have a question about some version of grep that runs
> on Windows. grep is not awk. grep is not Perl.
>
>
> > 2. regular expressions are not related to programming
>
>
> You are making stuff up, or I missed where someone has said that.
>
> _You_ said you are not using any language. (but you are. you are
> using some regular expression language or other...)
>
>
> > 3. gnu.utils.help group does not have anything to do with the behavior
of
> > gnu grep.
>
>
> You are making more stuff up, or I missed where someone has said that too.
>
> I saw no followups mentioning gnu.utils.help.
>
>
> > Thanks for the information.
>
>
> Uh huh.
>
>
> [ snip foolish TOFU ]
>
> --
> Tad McClellan SGML consulting
> tadmc@augustmail.com Perl programming
> Fort Worth, Texas
------------------------------
Date: Sun, 29 Feb 2004 23:07:46 GMT
From: CBFalconer <cbfalconer@yahoo.com>
Subject: Re: EOL Anchor under Windows
Message-Id: <40426B51.767C4117@yahoo.com>
Arifi Koseoglu wrote:
>
> Thanks gnari, really appreciated.
>
> "gnari" <gnari@simnet.is> wrote in message
>> "Arifi Koseoglu" <arifi@tnn.net> wrote in message
>>
>> [question about $ anchor with grep]
>>> Environment: W2K + cygwin
>>
>> without having experience with cygwin, may i nevertheless
>> suggest that your problem is that your lines are terminated
>> with \r\n, but the grep assumes \n.
>>
>> in that case your options may be to choose one of:
>> a) replace the grep command with a perl commandline
>> b) remove \r from the file befor the grep
>> c) change the regex to end with '.$' instead of '$'
>> d) use the -P option with grep, which will allow to use '\r$'
Why do people, when presented with an example of a properly
bottom-posted and snipped reply, insist on making silly top-posted
unsnipped useless further replies? It gives one great doubts as
to their ability to learn.
--
Chuck F (cbfalconer@yahoo.com) (cbfalconer@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
------------------------------
Date: Sun, 29 Feb 2004 23:20:47 -0000
From: "gnari" <gnari@simnet.is>
Subject: Re: EOL Anchor under Windows
Message-Id: <c1ts2i$6hj$1@news.simnet.is>
"CBFalconer" <cbfalconer@yahoo.com> wrote in message
news:40426B51.767C4117@yahoo.com...
[snipped quoted TOFU example]
>
> Why do people, when presented with an example of a properly
> bottom-posted and snipped reply, insist on making silly top-posted
> unsnipped useless further replies? It gives one great doubts as
> to their ability to learn.
it seems to take a while to sink in what we are talking about.
I usually give them the benefit of the doubt a few times before
I get irritated
gnari
------------------------------
Date: Mon, 01 Mar 2004 05:56:21 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: EOL Anchor under Windows
Message-Id: <9gA0c.13491$C65.7304@nwrddc01.gnilink.net>
Arifi Koseoglu wrote:
> Could someone please tell me whether:
>
> 1. The $ end-of-line anchor behaves differently in the MS Windows
> environment
> 2. The $ end-of-line anchor does not work in the MS Windows
> environment
> 3. I am an ignorant idiot and do not know how to use the $ anchor.
I think 3 is the probable answer in this case.
Unless you can demonstrate with a small self-contained program that $
"doesn't work" nobody is going to believe 1 or 2, because is does "work" for
millions of users.
> Environment: W2K + cygwin
I don't use cygwin, maybe is expects Unix style linebreak instead of Windows
style?
> What is
>
> grep --extended-regexp --ignore-case '[[:punct:]]{1}[[:alnum:]]{3}$'
>
> supposed to match?
Don't know. It is a syntax error to begin with.
grep BLOCK LIST
grep EXPR,LIST
--extended-regexp is neither a block nor an expression.
jue
------------------------------
Date: 29 Feb 2004 11:30:52 -0800
From: AyCeeUK@hotmail.com (Ali)
Subject: Getting status/response codes in Perl
Message-Id: <124e26f8.0402291130.390bf3eb@posting.google.com>
Hi,
I've created a site and on one page I need to print certain
information out to a log file. I've managed to get all the data that
is required except a 'HTTP response code'. I've searched through
several books and websites and all I've come up with is that they are
also called status codes and I've found how to create a page that is
displayed when a certain status code is found but I can't find out how
to log the status of the page that was loaded.
Does anyone know how to do this and am I right in saying that for the
page to have loaded correctly the code must be 200?
I thought it might be stored as an environment variable like when
setting and retrieving cookies but I can't find any environment
variables associated with status codes.
Can anyone help?
Thanks very much,
Ali :o)
------------------------------
Date: Sun, 29 Feb 2004 19:51:25 -0000
From: "gnari" <gnari@simnet.is>
Subject: Re: Getting status/response codes in Perl
Message-Id: <c1tfq0$4qh$1@news.simnet.is>
"Ali" <AyCeeUK@hotmail.com> wrote in message
news:124e26f8.0402291130.390bf3eb@posting.google.com...
> I've created a site and on one page I need to print certain
> information out to a log file. I've managed to get all the data that
> is required except a 'HTTP response code'. I've searched through
> several books and websites and all I've come up with is that they are
> also called status codes and I've found how to create a page that is
> displayed when a certain status code is found but I can't find out how
> to log the status of the page that was loaded.
>
> Does anyone know how to do this and am I right in saying that for the
> page to have loaded correctly the code must be 200?
>
> I thought it might be stored as an environment variable like when
> setting and retrieving cookies but I can't find any environment
> variables associated with status codes.
not really a perl question, but in general the web server does decide
what the status code is until the cgi script has finished, because if
the said script should terminate with error, a status 500 is returned.
you must either
a) assume there will be no error,and log code 200, preferably as the very
last action your script does
or
b) retrieve the status code from the webservers log file and join that
somehow with your logfile
or
c) your webserver may allow for your application to add information
to the webserver logfile. (Apache+mod_perl, for example allows this)
gnari
------------------------------
Date: Mon, 01 Mar 2004 03:13:06 GMT
From: Chris <ceo@nospan.on.net>
Subject: Re: GUI wrapper/compiler with Perl
Message-Id: <6Tx0c.30239$Jc3.20154@newssvr16.news.prodigy.com>
Phil Jacobson wrote:
> Hello everyone.
>
> I enjoy working with Perl and like to use it exclusively at work and
> home. I've been given a few tasks to complete at work and I'm looking
> for a simple way to create GUI applications but still use Perl. The
> problem lies in that I need to develop a few apps that will be used at
> 50 different facilities. I'd rather not hassle my administrator with
> getting Perl installed everwhere else so I need something that I can
> contain in one reasonably sized file and send to all the other
> facilities.
>
> I've already written the apps on the console level. Do any of you have
> ideas on simple GUI compilers that I can use to develop the interface
> that would wrap nicely around Perl? For example, Rapid-Q makes
> creating GUI apps easy, and the executable is a manageble size. It
> would be fantastic if I could make the two or three forms I need in
> something similar to Rapid-Q and point the menu and button calls to
> the Perl code I've already written. Compile it all up into one file
> and send it off to the other locations. I know I might lose some
> performance doing things this way, but I'm not too worried because the
> apps I need to create are pretty simple and my intended audience is
> not computer professionals who require loads of options.
>
> I'm using ActiveState Perl on WinXP at home. The other facilities are
> all currently running WinNT.
>
I always try to let my "GUI" be an end-user's Web browser. I know that
isn't the answer perhaps for which you were looking, but it just happens
to be the number one end-point in the world that you can code for at
this point. My opinion.
Chris
-----
Chris Olive
chris -at- --spammer-speed-bump-- technologEase -dot- com
http://www.technologEase.com
(pronounced "technologies")
------------------------------
Date: 29 Feb 2004 04:16:04 GMT
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: how die in AUTOLOAD
Message-Id: <c1rp24$5sr$1@mamenchi.zrz.TU-Berlin.DE>
Yuri Shtil <yshtil@cisco.com> wrote in comp.lang.perl.misc:
> Hi all
>
> I wrote the following code to call functions in an another package and
> process the return value.
>
> I check if the computed routine exists in the target package and call
> die if it does not. When I run this code there is no die message
> displayed, the program exits silently.
You are never calling anything, so AUTOLOAD is never triggered. Add
a line "gibsnich()" somewhere, and it will die as expected.
> no strict;
Why switch off strictures here? Only one statement requires it. Just
declare $AUTOLOAD with "our", and everything up to then is strict-proof.
> sub AUTOLOAD
> {
> my ($name, $oldsub);
> my $sub = $oldsub = $AUTOLOAD;
>
> $sub =~ s/.*::_(.+)$/package::$1/;
>
> $name = $1;
Never use $1 when you don't know if the pattern matched. $name may be
empty or undefined. Well, you're not using it anyway, so why is it here?
> if (! defined &$sub) {
> die "cannot autoload $oldsub";
>
> }
>
> $AUTOLOAD = $sub;
"no strict" should be here, not at file level. Ideally, put it with
the following statement in a block by itself.
> my $ret = &$AUTOLOAD;
Why do you put the value into $AUTOLOAD before you call it? Just call
"&$sub". There's no difference.
> # Process return value
> }
Anno
------------------------------
Date: Mon, 01 Mar 2004 14:49:57 +0800
From: Regent <arthur0421@163.com>
Subject: Opening a unique dat file for each user
Message-Id: <c1umg3$1q91$1@mail.cn99.com>
Hi,
Depending on the user ID, a unique file is to be opened for
write/append. I use the -T switch for each script, and when the script
goes to this line:
open (F, ">> $root/$path/$uid.dat") or die "$!\n";
# where $uid is the user ID, and I want to use this ID as the file name
I get a warning message saying "Insecure dependency in open while
running with -T switch" and the script terminates. What should I do in
order to avoid this while keeping the taint mode? Thanks.
Regent
------------------------------
Date: Mon, 01 Mar 2004 07:12:28 +0000
From: Dave Cross <dave@dave.org.uk>
Subject: Re: Opening a unique dat file for each user
Message-Id: <pan.2004.03.01.07.12.28.785356@dave.org.uk>
On Mon, 01 Mar 2004 14:49:57 +0800, Regent wrote:
> Hi,
>
> Depending on the user ID, a unique file is to be opened for
> write/append. I use the -T switch for each script, and when the script
> goes to this line:
>
> open (F, ">> $root/$path/$uid.dat") or die "$!\n";
>
> # where $uid is the user ID, and I want to use this ID as the file name
>
> I get a warning message saying "Insecure dependency in open while
> running with -T switch" and the script terminates. What should I do in
> order to avoid this while keeping the taint mode? Thanks.
How do the variables $root, $path and $uid get set? You probably need to
untaint one of those.
See "perldoc perlsec" for more details.
Dave...
------------------------------
Date: Mon, 01 Mar 2004 15:54:56 +0800
From: Regent <arthur0421@163.com>
Subject: Re: Opening a unique dat file for each user
Message-Id: <c1uqa2$1vlf$1@mail.cn99.com>
$root and $path are consants, the only variable is $uid, getting its
value in this way:
use CGI qw(:standard);
my $q = new CGI;
my $uid = $q->param('uid');
perlsec tells me that $uid is tainted; but how can I untaint it, if the
received value is to be used, dynamically, as part of a filename?
Thanks for the reply but I don't seem to get the knack...
Regent
Dave Cross wrote:
>> open (F, ">> $root/$path/$uid.dat") or die "$!\n";
> How do the variables $root, $path and $uid get set? You probably need to
> untaint one of those.
>
> See "perldoc perlsec" for more details.
>
> Dave...
>
------------------------------
Date: 29 Feb 2004 09:26:38 -0800
From: michael@webactor.dk (michael vernersen)
Subject: perl::api2 pdf problem...
Message-Id: <b1c145db.0402290926.12597cc0@posting.google.com>
I have a thing i want to do with perl::api2 pdf module.
Having search for days but i can't figure out this simple thing...
I want to create a new pdf document ( could by many pages ) where each
side should have the logo, from another pdf file ( 1 page )
The problem comes when the new pdf has more than a single page , then i
can't put the logo on the following pages.
So the best i have , and i doesn't work is :
$pdf=PDF::API2->new;
$pdf=PDF::API2->open('/pdf/1.pdf');
$pages=10; $t=0;
while ($t<$pages) {
$page=$pdf->page();
$page=$pdf->openpage(1);
$t++;
}
$pdf->saveas($filename);
$pdf->end;
Any suggestions ???????????????????
Thanks in advance...
Regards , Michael.
------------------------------
Date: Sun, 29 Feb 2004 12:39:22 -0500
From: "Matt Garrish" <matthew.garrish@sympatico.ca>
Subject: Re: perl::api2 pdf problem...
Message-Id: <dtp0c.98$JZ6.31597@news20.bellglobal.com>
"michael vernersen" <michael@webactor.dk> wrote in message
news:b1c145db.0402290926.12597cc0@posting.google.com...
>
> I have a thing i want to do with perl::api2 pdf module.
>
<snip repeat of earlier post>
I have many things I want to do, the least of which is find people
re-posting the same question (or do the two extra dots in your subject line
provide added meaning?). If someone has anything to say about your problem,
they'll say it. The fastest way to get ignored, however, is to do what
you've just done.
Matt
------------------------------
Date: 29 Feb 2004 23:48:02 -0800
From: michael@webactor.dk (michael vernersen)
Subject: Re: perl::api2 pdf problem...
Message-Id: <b1c145db.0402292348.1b807bd5@posting.google.com>
"Matt Garrish" <matthew.garrish@sympatico.ca> wrote in message news:<dtp0c.98$JZ6.31597@news20.bellglobal.com>...
> "michael vernersen" <michael@webactor.dk> wrote in message
> news:b1c145db.0402290926.12597cc0@posting.google.com...
> >
> > I have a thing i want to do with perl::api2 pdf module.
> >
> <snip repeat of earlier post>
>
> I have many things I want to do, the least of which is find people
> re-posting the same question (or do the two extra dots in your subject line
> provide added meaning?). If someone has anything to say about your problem,
> they'll say it. The fastest way to get ignored, however, is to do what
> you've just done.
>
> Matt
Hi Matt.
Sorry it was not my intension to post the same question , more than once.
What i want was to post the question to the germany perl newsgroup just in
case someone there has an answer.
I'm glad you corrected me , but sorry that you didn't was the person with
the answer to my little problem.
Regards Michael...
------------------------------
Date: Sun, 29 Feb 2004 11:22:38 -0600
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: regex
Message-Id: <slrnc447uu.i37.tadmc@magna.augustmail.com>
Sandman <mr@sandman.net> wrote:
> In article
><0718f9d29a0f06e3e416352e9e03a16c@localhost.talkaboutprogramming.com>,
> "yamini" <yamini_rajan@nospam.com> wrote:
>
>> $_="{NP_PP}the<pp>tyrosine</pp>_-phosphorylated_<Bppf>proteins</Bppf>{
>> /NP_PP}";
>> can anyone help in writing a regex to extraxt "tyrosine" from $_?
>
> Extracts?
>
> $_=~s/(tyrosine)//;
>
> print;
> print "\n" . $1;
You should never use the dollar-digit variables unless you
have first ensured that the match _succeeded_.
if ( $_=~s/(tyrosine)// ) {
print;
print "\n" . $1;
}
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: Mon, 01 Mar 2004 06:01:16 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: regex
Message-Id: <MkA0c.13499$C65.8434@nwrddc01.gnilink.net>
yamini wrote:
>
$_="{NP_PP}the<pp>tyrosine</pp>_-phosphorylated_<Bppf>proteins</Bppf>{/NP_PP
}";
> can anyone help in writing a regex to extraxt "tyrosine"
> from $_?
s/tyrosine//;
This will extract the word tyrosine from the string and leave you with a
string that does not contain that word any more.
Now, if you meant to ask for something else, then maybe just ask something
else.
With the little information you gave it is pretty much impossible to figure
out what you really wanted.
jue
------------------------------
Date: 01 Mar 2004 06:20:38 GMT
From: Martien Verbruggen <mgjv@tradingpost.com.au>
Subject: Re: regex
Message-Id: <slrnc45lhk.8k7.mgjv@verbruggen.comdyn.com.au>
On Sun, 29 Feb 2004 06:17:56 -0600,
yamini <yamini_rajan@nospam.com> wrote:
> $_="{NP_PP}the<pp>tyrosine</pp>_-phosphorylated_<Bppf>proteins</Bppf>{/NP_PP}";
> can anyone help in writing a regex to extraxt "tyrosine"
> from $_?
You asked the same question on 25 February in an article with the
message id
<aaa2579681df4d042803776836cf3c90@localhost.talkaboutprogramming.com>.
Why are you asking it again? Have you read the replies to that
previous post yet?
Martien
--
|
Martien Verbruggen |
Trading Post Australia | Curiouser and curiouser, said Alice.
|
------------------------------
Date: Sun, 29 Feb 2004 21:38:33 GMT
From: thumb_42@yahoo.com
Subject: Re: using perl script to compile java
Message-Id: <tZs0c.5045$ko6.59691@attbi_s02>
David <david_jerus_1969@voila.fr> wrote:
> Hi everybody,
> I'm trying to do a small perl sript to compile a basic java code.
> This is what I've done so far. the name of Java code is "hello.java",
> and the name of the perl script is "compile". This is how I run it
Have you considered 'ant' for this task. (it'd probably be easier)
Jamie
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc. For subscription or unsubscription requests, send
#the single line:
#
# subscribe perl-users
#or:
# unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.
NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V10 Issue 6195
***************************************