[26117] in Perl-Users-Digest
Perl-Users Digest, Issue: 8312 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Aug 10 18:05:31 2005
Date: Wed, 10 Aug 2005 15:05:06 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Wed, 10 Aug 2005 Volume: 10 Number: 8312
Today's topics:
Re: Feed a directory listing to a script <justin.0507@purestblue.com>
how to fill out a form and submit?? <dingdongy2k@hotmail.com>
hwo to post to a form? <dingdongy2k@hotmail.com>
Pre-declaring subroutines <RedGrittyBrick@SpamWeary.foo>
Re: Problem in passing values to perl script using anot xhoster@gmail.com
Re: Syntax highlighting in perl debugger <sherm@dot-app.org>
Re: Syntax highlighting in perl debugger <mshaw@bangnetcom.com>
Re: Syntax highlighting in perl debugger <sherm@dot-app.org>
Re: Syntax highlighting in perl debugger <mshaw@bangnetcom.com>
Re: Syntax highlighting in perl debugger <sherm@dot-app.org>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Wed, 10 Aug 2005 18:24:35 -0000
From: Justin C <justin.0507@purestblue.com>
Subject: Re: Feed a directory listing to a script
Message-Id: <7aab.42fa4663.879d3@stigmata>
On 2005-08-10, Joe Smith <joe@inwap.com> wrote:
> Shabam wrote:
>>>> Please don't tell me to just tar/gz the /Users/ directory.
>>>> That will not work for this because it will be greater than 4GBs,
>>>
>>>So?
>>
>> You don't get it do you?
>
> Get what? Modern versions of tar can create archive files of
> greater than 2 or 4 gigabytes.
Maybe the OP has a DAT drive that doesn't support tapes bigger than
2/4GB?
Justin.
--
Justin C, by the sea.
------------------------------
Date: Wed, 10 Aug 2005 19:20:49 GMT
From: "Travis" <dingdongy2k@hotmail.com>
Subject: how to fill out a form and submit??
Message-Id: <lssKe.4492$Oy2.3437@tornado.tampabay.rr.com>
I want to write a perl script to fill out a form and submit it.
Is this how it is done?
print
"Location:http://www.somewhere.com/wwwboard/cgi-bin/wwwboard/wwwboard.pl?nam
e=cindy&subject=new&body=something";
Assuming that works..
How do I get it to continue the script instead of ending
after the print location?
Thanks
------------------------------
Date: Wed, 10 Aug 2005 19:25:28 GMT
From: "Travis" <dingdongy2k@hotmail.com>
Subject: hwo to post to a form?
Message-Id: <IwsKe.3287$Yx1.2538@tornado.tampabay.rr.com>
I want to write a perl script to post to a form
print
"Location:http://www.somewhere.com/wwwboard/cgi-bin/wwwboard/wwwboard.pl?nam
e=cindy&subject=new&body=something";
Assuming this works how do I get it to write the next
form without leaving the script?
------------------------------
Date: Wed, 10 Aug 2005 19:57:31 +0000 (UTC)
From: RedGrittyBrick <RedGrittyBrick@SpamWeary.foo>
Subject: Pre-declaring subroutines
Message-Id: <dddm7b$129$1@nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com>
I've tried various perldoc incantations but haven't yet found where it
is it explained *why* it is necessary to declare subroutines in advance
of using them in order to avoid the following warning messages:
I thought the parentheses would identify the name as a subroutine
invocation.
Can some kind person point out TFM for me to R?
C:\Temp>perl t2.pl
Bareword found where operator expected at t2.pl line 10, near "$html
htmlhead"
(Missing operator before htmlhead?)
Bareword found where operator expected at t2.pl line 12, near "$html
htmltail"
(Missing operator before htmltail?)
C:\Temp>type t2.pl
#!perl
use strict;
use warnings;
# sub htmlhead; # uncommenting these makes the warnings go away.
# sub htmltail;
open my $html, '>', 't.html' or die "unable to open t.html - $!";
print $html htmlhead();
print $html " foo\n";
print $html htmltail();
close $html or die "unable to close t.html - $!";
sub htmlhead {
my $html = <<EndOfHead;
<html>
<head><title>Test</title></head>
<body>
EndOfHead
return $html
}
sub htmltail {
my $html = <<EndOfTail;
</body>
</html>
EndOfTail
return $html
}
------------------------------
Date: 10 Aug 2005 18:20:06 GMT
From: xhoster@gmail.com
Subject: Re: Problem in passing values to perl script using another perl script
Message-Id: <20050810142006.288$Av@newsreader.com>
vikrant <vikrantREMOVE@DELETEsaysnetsoft.com> wrote:
> hi
>
> i have two perl scripts user.pl and user_database.pl
>
> user.pl #script store in /home/bob directory
> --------------------------------
> #!/usr/bin/perl
> print"Enter the user name";
> $name = <STDIN>;
> print "$name";
> ----------------------------------
>
> user_database.pl # script store in /home/bob directory
> ----------------------------------
> #!/usr/bin/perl
> $user_name = "BOB";
>
> system("perl /home/bob/user.pl");
$user_name = "BOB";
warn "This is probably a stupid way to solve whatever your root problem
is"; system("echo $user_name | perl /home/bob/user.pl")
> It asked me to enter user name. Now,i have to enter the value using my
> keyboard but i do not want to do so.
>
> i want that the value of "$user_name" pass to this automatically.
>
> But,i am not able to do so.
>
> Due to some reason i do not want to make use of command line arguments.
If you are not able to do things in the most appropriate manner due to some
bizarre reason, and you fail to explain what that bizarre reason is, how
are we supposed to help circumvent that bizarre limitation? Any solution
we propose from out of the darkness is also likely to run afoul of the same
bizarre, unexplained reason that prevents you from doing it right in the
first place.
(But in this case, "doing it right" is at least as likely to be modules,
rather than command line arguments in a system call.)
Xho
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
------------------------------
Date: Wed, 10 Aug 2005 14:50:49 -0400
From: Sherm Pendley <sherm@dot-app.org>
Subject: Re: Syntax highlighting in perl debugger
Message-Id: <m2u0hxwrqu.fsf@Sherm-Pendleys-Computer.local>
Mark Shaw <mshaw@bangnetcom.com> writes:
> Mark Shaw <mshaw@bangnetcom.com> wrote:
>> How does one turn OFF the syntax highlighting in the perl
>> debugger?
>
>> I'm running 5.8.0 under linux.
>
> I find it hard to believe that nobody knows the answer to
> this one....
I don't. There are many debuggers one can use with Perl. Some of them use a
graphical interface, some of them run in a console, some support color syntax
highlighting, some don't.
If you're using a GUI app, have a look around its preferences panel. If it has
a web site, have a look around there for a manual and/or FAQ.
sherm--
--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
------------------------------
Date: Wed, 10 Aug 2005 19:21:22 +0000 (UTC)
From: Mark Shaw <mshaw@bangnetcom.com>
Subject: Re: Syntax highlighting in perl debugger
Message-Id: <dddk3i$5q8$17@reader2.panix.com>
Sherm Pendley <sherm@dot-app.org> wrote:
> Mark Shaw <mshaw@bangnetcom.com> writes:
> >> How does one turn OFF the syntax highlighting in the perl
> >> debugger?
> >
> >> I'm running 5.8.0 under linux.
[...]
> If you're using a GUI app, have a look around its preferences panel. If it has
> a web site, have a look around there for a manual and/or FAQ.
It's the debugger that comes with the standard library, running
in an xterm.
--
Mark Shaw moc TOD liamg TA wahsnm
========================================================================
"All of my mistakes are giving me ideas." - Natalie Lileks
------------------------------
Date: Wed, 10 Aug 2005 15:37:41 -0400
From: Sherm Pendley <sherm@dot-app.org>
Subject: Re: Syntax highlighting in perl debugger
Message-Id: <m264udpoqi.fsf@Sherm-Pendleys-Computer.local>
Mark Shaw <mshaw@bangnetcom.com> writes:
>> >> How does one turn OFF the syntax highlighting in the perl
>> >> debugger?
>
> It's the debugger that comes with the standard library, running
> in an xterm.
Well, the immediate question then is how did you turn *ON* syntax high-
lighting? Nothing in "perldoc perldebug" mentions that the built-in
debugger can do that, much less how to enable it. None of the variables
displayed with "o" look relevant to that.
Are you using the standard vanilla xterm, or the GNOME, KDE, or some other
terminal app? Are you certain it's not your terminal app that's doing the
highlighting?
sherm--
--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
------------------------------
Date: Wed, 10 Aug 2005 19:59:40 +0000 (UTC)
From: Mark Shaw <mshaw@bangnetcom.com>
Subject: Re: Syntax highlighting in perl debugger
Message-Id: <dddmbc$k0v$3@reader2.panix.com>
Sherm Pendley <sherm@dot-app.org> wrote:
> Mark Shaw <mshaw@bangnetcom.com> writes:
> >> >> How does one turn OFF the syntax highlighting in the perl
> >> >> debugger?
> >
> > It's the debugger that comes with the standard library, running
> > in an xterm.
> Well, the immediate question then is how did you turn *ON* syntax high-
> lighting?
I didn't. It seems to have come that way, at least in the Red
Hat distro.
> Nothing in "perldoc perldebug" mentions that the built-in
> debugger can do that, much less how to enable it. None of the variables
> displayed with "o" look relevant to that.
Yes, I'm reasonably certain it's not native in the debugger
itself. I thought that someone here might have run into this
and would know where the syntax highlighting was coming from.
The 'man' command also has syntax highlighting, which I'd also
dearly love to turn off. As do 'vi' (actually vim) and 'ls',
but I've already figured those out.
I can see this having some utility in a text editor for certain
types of coding, but otherwise I think it's an abomination -
and I'm fairly ticked off that it's not obvious how to defeat
it.
> Are you using the standard vanilla xterm, or the GNOME, KDE, or some other
> terminal app? Are you certain it's not your terminal app that's doing the
> highlighting?
It's xterm. The only thing I do differently is set a background
and text color (black and yellow, respectively) that I find easy
to work with.
Here's my command line:
xterm -bg black -fg yellow -title !* &
--
Mark Shaw
========================================================================
"The most exciting phrase to hear in science, the one that heralds new
discoveries, is not 'Eureka!' but 'That's funny....'" - Isaac Asimov
------------------------------
Date: Wed, 10 Aug 2005 17:07:15 -0400
From: Sherm Pendley <sherm@dot-app.org>
Subject: Re: Syntax highlighting in perl debugger
Message-Id: <m2vf2dv6v0.fsf@Sherm-Pendleys-Computer.local>
Mark Shaw <mshaw@bangnetcom.com> writes:
> Yes, I'm reasonably certain it's not native in the debugger
> itself. I thought that someone here might have run into this
> and would know where the syntax highlighting was coming from.
>
> The 'man' command also has syntax highlighting, which I'd also
> dearly love to turn off. As do 'vi' (actually vim) and 'ls',
> but I've already figured those out.
Beats me then. :-(
I'd try using a different terminal emulator - especially as it seems you
aren't too happy with xterm for a number of different apps. There's no
shortage of alternatives, certainly.
sherm--
--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
------------------------------
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 8312
***************************************