Hello Rajeev,
Saturday, July 07, 2001, Rajeev Rumale <[EMAIL PROTECTED]> wrote:
RR> But the what i need is the grep the name of the sub which is calling the
RR> loging sub.
do you read perldoc -f caller?
[...]
RR> sub debugLogger {
RR> my $message = "@_";
RR> $sub_name = ""; # Get t
Hi,
THis is probably a simple question. Am new to perl and CGI so please
have mercy. I have a script which displays a list of files with links
to them. The links when hovered over in a browser show as:
display_file.pl?filename=blahblah
How can I extract the blahblah bit (which is the name of
## "Alessandro Lenzen" <[EMAIL PROTECTED]> on: Tue, 7 Aug 2001 13:21:22 +0200
##
::> Hello Francesco,
alenzen::>
alenzen::> first of all you should read the CGI.pm manpage if you want to write good
alenzen::> CGIs.
alenzen::> You don't need to use the CGI.pm module, but it is considered g
Once again. This is a problem that can be easily solved reading the CGI
module documentation at:
http://www.perldoc.com/perl5.6/lib/CGI.html
use the CGI module:
use CGI;
my $q = new CGI;
my $filename = $q->url_param('filename'); # or
my $filename = $q->param('filename');
-Original Mess
-Original Message-
From: Sidharth Malhotra
Sent: Tuesday, August 07, 2001 8:49 AM
To: 'Joel Hughes'
Subject: RE: href arguments
I apologise to all who felt I came down in a somewhat condescending tone.
My feeling is simply that many people seem email the list as their first
solution.
Hi,
I want to be able to create graphic logos witha perl script - any ideas on
how to do this?
What I mean is I will provide a list of titles and a list of font styles
then the script will create a gif for each title using a random font style..
Can it be done? Is it difficult? I've never tried
On Tue, 7 Aug 2001, Rob wrote:
> I want to be able to create graphic logos witha perl script - any ideas on
> how to do this?
>
> What I mean is I will provide a list of titles and a list of font styles
> then the script will create a gif for each title using a random font style..
>
> Can it be d
Does anyone know of a perl module/program to convert M$ Word documents into HTML? I
have looked at the perldocs, and searched CPAN, but haven't found one.
Adam Carson
MIS Department
Berkeley County, S
On Tue, 7 Aug 2001, Adam Carson wrote:
> Does anyone know of a perl module/program to convert M$ Word documents into HTML? I
>have looked at the perldocs, and searched CPAN, but haven't found one.
Word itself can generate HTML documents from Word documents. Maybe you
can set up some OLE autom
I have tried that, and Word generates HTML documents (XML actually) that have
consistently had incorrect formatting.
Adam Carson
MIS Department
Berkeley County, SC
>>> "Brett W. McCoy" <[EMAIL PROTECT
If you have Dreamweaver you can use the 'Clean up Word HTML' option in the
Modify menu on the toolbar.
Brad Handy
--www.jack-of-all-trades.net
[EMAIL PROTECTED]
> -Original Message-
> From: Adam Carson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 07, 2001 11:22 AM
> To: [EMAIL PROT
Thanks. I'll try that.
Adam Carson
MIS Department
Berkeley County, SC
>>> "Bradley M. Handy" <[EMAIL PROTECTED]> 08/07/01 11:26AM >>>
If you have Dreamweaver you can use the 'Clean up Word HTML' optio
Hope this helps ... you can run this from the command line then enter
"Ctrl+d" to see what is generates... I'm sure there are other ways of doing
this ...
You make wish to check the permissions on /etc/password at your shop ..
use CGI;
$q->new CGI;
while (($name,undef,$uid)= getpwent) {
You could pass two arguments to the debugLogger, one the message, and the
other the sub name. So it would be:
sub x{
stuff
$sub_name = ""; # Get the subroutine name.This is what i need to grep.
debugLogger($sub_name, $message);
}
Then the debugLogger just has to print. I know that
Yeah, the dreamweaver 'Clean up Word HTML' is amazing.
It does miss some tags, like class, so you have to take an extra step or
two to remove them.
-Original Message-
From: Bradley M. Handy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 07, 2001 11:26 AM
To: Adam Carson; [EMAIL PROTE
Hi all,
I have a Perl script that takes the contents of a
form, feeds them to GnuPG for encryption and then
emails me the encrypted document. GPG wants to either
display the results in STDOUT or write a text file,
both of which arent good.
I was hoping redirect STDOUT to a variable for a short
--- Rajeev Rumale <[EMAIL PROTECTED]> wrote:
> Thanks Dwalu,
>
> But the what i need is the grep the name of the sub which is calling the
> loging sub.
> As you have suggested "caller" only gives only the name of current sub
> routine that is &debugLogger it self.
> And I had to do call the "cal
Have you taken a look at the GnuPG or Crypt::GPG modules on CPAN?
These would probably work really good for what you're doing, and
you wouldn't have to worry about redirecting STDOUT.
Brad Handy
--www.jack-of-all-trades.net
[EMAIL PROTECTED]
> -Original Message-
> From: Mark Ross [mailto
Good morning,
'caller' also takes an optional argument that specifies how far up the
calling stack (list of embedded functions) to traverse. Try experimenting
with caller($i) where $i > 0 in your 'debugLogger' subroutine and you'll
see what I mean. 'caller' in a list context prints out addition
>Have you taken a look at the GnuPG or Crypt::GPG
modules on CPAN?
Yep, I've looked (and longed), but my Web hosting
service refers to them as "hooky." I think he's
hostile because they aren't version 1 or higher (not
that it really makes much difference). I also don't
have the ability to directl
I've been scrounging the internet for this answer, but can't find one
EDIT
This code works, if, and only if there are _no_ double_quotes( " ) received
from the database. Yes you guessed it, there are some things that have ("'s
i.e. 17" monitor, 24" cable). As you know, double quotes en
--- Mark Ross <[EMAIL PROTECTED]> wrote:
> >Have you taken a look at the GnuPG or Crypt::GPG
> modules on CPAN?
>
> Yep, I've looked (and longed), but my Web hosting
> service refers to them as "hooky." I think he's
> hostile because they aren't version 1 or higher (not
> that it really makes muc
--- shawn <[EMAIL PROTECTED]> wrote:
> I've been scrounging the internet for this answer, but can't find one
>
>
>
>
> href="edit.pl?submit=edit&id=$$row{'id'}&title=$$row{'title'}&description=$$
> row{'description'}&model=$$row{'model'}&serial=$$row{'serial'}&value=$$row{'
> valuation'}&
Disclaimer: I've read the docs, talked to several folks, and played around
with the scripts, but I must be missing something.
I'd like to get the "tmon.out" file output from the -d:DProf flag when my
CGI scripts execute remotely on the web server that I'm developing on, but
whenever I add the '-d
On 7, Aug, 2001 at 12:11:29PM -0400, Mark Saunders wrote:
> Yeah, the dreamweaver 'Clean up Word HTML' is amazing.
> It does miss some tags, like class, so you have to take an extra step or
> two to remove them.
HTML-TIDY claims to be able to clean up dirty Word html, get it from
http://www.w3
--- Jason Purdy <[EMAIL PROTECTED]> wrote:
> Disclaimer: I've read the docs, talked to several folks, and played around
> with the scripts, but I must be missing something.
>
> I'd like to get the "tmon.out" file output from the -d:DProf flag when my
> CGI scripts execute remotely on the web serv
> I just tested a command line script by putting -d:Dprof in the shebang
line and didn't have any
> problem. Of course, I'm using ActiveState here and that might make a
difference. Perhaps you
> could tell us what's in your error log?
Yea ... that's another problem - I don't have access to
Hello Francesco,
first of all you should read the CGI.pm manpage if you want to write good
CGIs.
You don't need to use the CGI.pm module, but it is considered good
programming practice and it saves a lot of time since you don't have to
bother with a lot of things.
The following code should help
Oh, I see. I'm a bit confused. Maybe it's my fault...
Do you have a string like "display_file.pl?filename=blahblah" or are you
calling the CGI with http://www.domain.it/display_file.pl?filename=blahblah
?
The code I wrote is for the latter...
In the first case, you could use regexes:
#!/usr/bin/p
Sidrath,
is there any need to adopt that surly attitude when responding?
joel
-Original Message-
From: Sidharth Malhotra [mailto:[EMAIL PROTECTED]]
Sent: 07 August 2001 13:23
To: 'Francesco Scaglioni'
Cc: '[EMAIL PROTECTED]'
Subject: RE: href arguments
Once again. This is a problem th
Maybe I'm missing something, but doesn't this work?
use strict;
use warnings;
sub routine1 {
print "Calling routine2...\n";
routine2();
print "Done\n";
}
sub routine2 {
print "\tCalled by ", (caller(1))[3], "\n";
}
routine1();
output:
Calling routine2...
Called by main
I'm new to scripting in PERL (I've only done Javascript and Lingo before).
I'm building a script to write an HTML page on the fly, using image files
that are in a directory that is given to the script as a variable. How do I
pass my variable to my script from the HREF link that my user clicks? (E
--- Lee Hoffner <[EMAIL PROTECTED]> wrote:
> I'm new to scripting in PERL (I've only done Javascript and Lingo before).
>
> I'm building a script to write an HTML page on the fly, using image files
> that are in a directory that is given to the script as a variable. How do I
> pass my variable to
I think you might want to see my script, to see where I am trying to go. As
this is my first day on this list, I'd like to know if it's okay for me to
post an entire script before I do. It's 69 lines, with a lot of comments
stating what I am trying to do. Would you all mind if I post it, or would
--- Lee Hoffner <[EMAIL PROTECTED]> wrote:
> I think you might want to see my script, to see where I am trying to go. As
> this is my first day on this list, I'd like to know if it's okay for me to
> post an entire script before I do. It's 69 lines, with a lot of comments
> stating what I am tryin
Thanks, Curtis! Below is the script. (I hope it's clear!)
#!/usr/local/bin/perl
#This script will be called using the "POST" method,
#contained in a HREF that the
#site visitor clicked on.
#The call will contain an argument, which will
#be
Adam,
I needed a clean output from Word for very large docs that only have
paragraph styles. So I wrote a little VB macro that tags anything in Word
with its style. It only handles para styles not other formatting.
So after running the macro: a heading1 styled paragraph would be end up as
the
Hi,
On Tue, 7 Aug 2001, Lee Hoffner wrote:
> use strict;
> use CGI qw/:standard/;
> my $dir = param('dir');
>
> #Verify that the requested directory exists.
> #I imagine I want to say something like:
> if (-d $dir) {
>
> print < Content-Type: text/html\n\n
>
>
>
> END
> @filearray =
38 matches
Mail list logo