On Thu, 6 Jan 2005, Randal L. Schwartz wrote:
> > "Chris" == Chris Devers <[EMAIL PROTECTED]> writes:
>
> Chris> In Perl, the most common legit use of `goto` seems to be jumping out
> of
> Chris> loops,
>
> Really? Where have you even seen that? I can show you an entire
> decade-spanning
You could use the "use lib" construct, e.g.,
use lib qw(/Spreadsheet/ParseExcelSimple);
Of course, specify paths as your applications require.
- Original Message -
From: Owen Cook
To: beginners@
On Thu, 6 Jan 2005, Sam Pinizzotto wrote:
>
> I'm very new to the Perl Scene...I have an application that was developed
> for Perl TK and we are now trying to convert it for use through the web.
>
> I can pass the info from a web form to the script, but when the script runs,
> it says it can't
On Thu, 6 Jan 2005, Tim Wolak wrote:
> I am in need of a quick way to get the current date in the MMDD
> format. This is something I would like to understand better on how to
> get the date with perl. Any suggestions would be most welcome.
You need to read up on localtime.
>>> Tim Wolak <[EMAIL PROTECTED]> 06/01/2005 3:59:26 pm >>>
>Hello all,
>I am in need of a quick way to get the current date in the MMDD
>format. This is something I would like to understand better on how to
>get the date with perl. Any suggestions would be most welcome.
As per the perlch
Tim Wolak wrote:
Hello all,
I am in need of a quick way to get the current date in the MMDD
format. This is something I would like to understand better on how to
get the date with perl. Any suggestions would be most welcome.
Tim
Hi.
You're probably looking for localtime?
> perldoc -f local
Hello all,
I am in need of a quick way to get the current date in the MMDD
format. This is something I would like to understand better on how to
get the date with perl. Any suggestions would be most welcome.
Tim
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Hi,
I'm very new to the Perl Scene...I have an application that was developed
for Perl TK and we are now trying to convert it for use through the web.
I can pass the info from a web form to the script, but when the script runs,
it says it can't find the modules I am calling. How do I tell where i
I thought it stood for 'Repugnant Piece of Garbage'..
From: Ron Wingfield [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 06, 2005 7:27 AM
To: Perl Beginners List; Charles K. Clarkson
Cc: Dan Sturgill; [EMAIL PROTECTED]; Kerry Townsend; Burns
Ron Wingfield wrote:
Can a JavaScript instruction, executed per the custom "CheckForm" subroutine as called -onsubmit (see below) assign the value of the Perl $ap_name var that is associated with the -action argument of start_form( )? (BTW, I'm on my way to Barnes & Noble to buy yet another $50 b
I have an application scenario where for example, four programs are stacked as
follows
pgm-a -- login/passwd/default database selection
pgm-b -- Application Menu
pgm-c -- specific application browser interface
pgm-d -- uses DBI_API.pm (custom Perl module)
Pgm-d is totally generic and
Can a JavaScript instruction, executed per the custom "CheckForm" subroutine as
called -onsubmit (see below) assign the value of the Perl $ap_name var that is
associated with the -action argument of start_form( )? (BTW, I'm on my way to
Barnes & Noble to buy yet another $50 book, . . .thought I
Edward Wijaya wrote:
Seems that John's regex approaches are (much) faster:
Rate HD_string HD_jkrahn2 HD_jkrahn1
HD_string 203251/s -- -18% -76%
HD_jkrahn2 247033/s22% -- -71%
HD_jkrahn1 848840/s 318% 244% --
[snip]
sub h
On 6 Jan 2005 16:11:40 -, Peter Scott <[EMAIL PROTECTED]> wrote:
> The only times I've used goto in Perl have been the
> "goto &sub" form, which isn't much of a goto in
> the first place :-)
I use it the most when I'm debugging. For example, if I'm hacking on a
webpage with a bunch of redirect
This thread can't finish without mention of the classic
paper at http://www.acm.org/classics/oct95/ .
The only times I've used goto in Perl have been the
"goto &sub" form, which isn't much of a goto in
the first place :-)
--
Peter Scott
http://www.perldebugged.com/
*** NEW *** http://www.perlmed
> "Zentara" == Zentara <[EMAIL PROTECTED]> writes:
Zentara> When you use "last" to get out of a loop, it only takes you
Zentara> out of the loop you are in,
And this is just wrong. You need to read "Learning Perl", because
two pages after we introduce "last", we talk about labeled loops.
Z
> "Chris" == Chris Devers <[EMAIL PROTECTED]> writes:
Chris> In Perl, the most common legit use of `goto` seems to be jumping out of
Chris> loops,
Really? Where have you even seen that? I can show you an entire
decade-spanning career of Perl programming where "goto" was never
used to jump
Don't know if anyone in the discussion has ever written any of IBM's early RPG
(note that the options are still in the RPG/400 for the ILE, too, . . .DO NOT
USE THEM!), but RPG instructions (known as "calculation" or "C" specs. --
nothing to do with the C programming language) have a throw-back
I guess I'm really old, too (55 yrs); however, I actually saw a book (I didn't
touch it though), "The Art of Assembly Language Programming" at Barnes & Noble
this afternoon. Hopefully, I've forgotten everything that I've ever known
about 370 Macro Assembler. . . .And it is true that to get aro
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Friday 07 January 2005 00:17, zentara wrote:
> Like in this contrived example.
>
> foreach my $x (1..100){
> foreach my $y (1..500){
> foreach my $z (1..1000){
> if( $x + (2 * $y) - $z = 0 ) {goto END}
> }
>
On Thu, 6 Jan 2005, Charles K. Clarkson wrote:
> Chris Devers <[EMAIL PROTECTED]> wrote:
>
> : In [brief] defense of GOTO, for some programming it is
> : essential. Assembly language programming, for example.
>
> Since this is a perl list, we can safely assume the
> OP was not asking about a
Hi,
got chatting to a colleague about this and he mentioned file buffering.
A quick look on the net turned up this page, looks like what I need. I've
not tried it yet, but thought others may find it useful:
http://www.foo.be/docs/tpj/issues/vol3_3/tpj0303-0002.html
rgds,
Adrian
- Forwar
Seems that John's regex approaches are (much) faster:
Rate HD_string HD_jkrahn2 HD_jkrahn1
HD_string 203251/s -- -18% -76%
HD_jkrahn2 247033/s22% -- -71%
HD_jkrahn1 848840/s 318% 244% --
__BEGIN__
#!/usr/bin/perl -w
us
Hi,
I have an issue that makes me think there maybe something fundamental I'm
misunderstanding about how perl operates.
The code below simply replaces the ASCII SOH character \001 with a space in
real time on a logfile.
And it works great if the output is printed to screen, BUT, if it's
printed
24 matches
Mail list logo