hi perl friends,
how do i pass an argument to an external script w/ the "do" command? for
example if i have:
my @Variable = qw(1 2 3 4);
do 'c:/perl/Test.plx'; # how do i pass the @Variable as an argument to
Test.plx?
i am not familiar about creating modules and packages...
thanks for any idea
[EMAIL PROTECTED] wrote:
>
> All,
>
> As part of a service I'm developing, I need to run an external command and
> capture both its STDOUT and STDERR. The line:
> my $rot = `path\\to\\command`;
> saves the command's STDOUT into $rot as expected. However, when I change
> this to:
> my $rot =
Glenn Linderman wrote:
>
> Actually, it isn't the $i++. It was the $i < 501. Particularly, the <. Switching
>to $i lt '501'
> produces the sequence with leading zeros intact.
>
> for ( $i = "001"; $i lt "501"; $i++ )
You're absolutely right that I'm wrong. :)
I thought the inc would change
Christopher Hahn wrote on 3 Apr:
>>>
One point: within perl the '/' character can be used to separate path
elements, on all platforms.
>>>
and Philip Newton responded on 4 Apr:
>>>
I wouldn't be quite so sure about that. Does it work in RiscOS, VMS,
MacPerl, and Amiga file systems? I know it wor
> close STDERR;
> open (STDERR, ">NUL");
That's what I wanted to do.
>
> timethese( 5000 , {
> 'NumsAsStrings' => 'for ( $i = "001"; $i lt "501"; $i++ ) {print
STDERR $i}',
> 'NumsAsNums1' => 'for ( 1 .. 501 ) {printf STDERR "%03d", $_};',
> 'NumsAsNums2' => 'for ( $i=1; $i<
> > for ( $i = "001"; $i lt "501"; $i++ )
>
> I think there's something to be said about using numbers that are really
> strings as numbers. Specifically that it might not be the RightThing to do.
> There seems to be an aweful lot of unnecessary conversion going on.
Here, Here.
> printf()'s fo
> for ( $i = "001"; $i lt "501"; $i++ )
I think there's something to be said about using numbers that are really
strings as numbers. Specifically that it might not be the RightThing to do.
There seems to be an aweful lot of unnecessary conversion going on.
printf()'s formatting was designed for t
Actually, it isn't the $i++. It was the $i < 501. Particularly, the <. Switching to
$i lt '501'
produces the sequence with leading zeros intact.
for ( $i = "001"; $i lt "501"; $i++ )
Cheers!
"$Bill Luebkert" wrote:
> Glenn Linderman wrote:
> >
> > Doesn't he need
> >
> > for ( $i="001"; $i
Bill,
Here is the site I found that describes the Internet explorer object.
http://msdn.microsoft.com/workshop/browser/webbrowser/reference/Objects/Inte
rnetExplorer.asp
wantor
> -Original Message-
> From: Bill Catlan [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 05, 2001 7:25 PM
Scott F wrote:
>
> If you like slow, you'll love Komodo. 8-}
I was wondering why Intel and AMD were making plans for a 2 GHz chip for
next year...
Rick
begin:vcard
n:Nakroshis;Richard
tel;pager:410 769-3547
tel;cell:240 460-4900
tel;fax:410 865-2213
tel;work:410 865-2926
x-mozilla-html:TRUE
> @file = ;
@file = reverse ;
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
All,
As part of a service I'm developing, I need to run an external command and
capture both its STDOUT and STDERR. The line:
my $rot = `path\\to\\command`;
saves the command's STDOUT into $rot as expected. However, when I change
this to:
my $rot = `path\\to\\command 2>&1`;
nothing gets saved
> Anyone who's looked at Word docs saved as HTML
> knows it's frankly terrible. I'm doing a lot of
> converting these HTML docs to XML, and wonder
> if anyone has any effective routines to do the
> job? If not, I'll try to get some stuff on
> CPAN (always fun).
http://www.w3.org/People/Raggett
Surely we should all be using ptked.
Michael Erskine (MSEmtd)
mailto:[EMAIL PROTECTED]
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
For my Fourpence, I still prefer vim.
But I'd go for any editors which don't use a mouse, as they're usually
faster to work in.
Marty
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Casey Williams
> Sent: Friday 06 April 2001 15:26
> To: [EMAIL
At 15:29 06/04/2001 +0100, erskine, michael wrote:
>The editor wars are alive and well!
Right. Let's talk HTML mail
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
I agree, UltraEdit32 is awesome, however, it has some minor problems with
the syntax highlighting. But it's myriads of features make up for it.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Friday, April 06, 2001 9:19 AM
To: [EM
In the debate of editors, I agree - Notepad is not very useful. I'll put
my vote in for UltraEdit32.
"Scott F" <[EMAIL PROTECTED]>
If you like slow, you'll love Komodo. 8-}
The features and concept are good though. Hopefully, they can speed it
up some.
Scott F.
On 6 Apr 2001, at 13:57, Lee Goddard wrote:
> Aw, just kidding ;)
>
> I can't stand visual tools that's my problem.
> No reason why you can't use Textpad
At 05:30 06/04/2001 -0700, $Bill Luebkert wrote:
>Lee Goddard wrote:
> >
> > And I don't need help building Reg-ex's:
> > I've got $Bill ;)
>
>And I've never even read a book on RE yet. So far I've gotten by
>with perlre man page. :)
>
>And I do just fine with vim syntax highlighting. :)
I think
Aw, just kidding ;)
I can't stand visual tools that's my problem.
No reason why you can't use Textpad with PHP, HTML:
syntax highlight, send file to browsers/commandsetc.
I'm goona look at Komodo, though!
Cheers
lee
At 07:31 06/04/2001 -0500, Gregg Martinson wrote:
>No flamewar intende
Lee Goddard wrote:
>
> And I don't need help building Reg-ex's:
> I've got $Bill ;)
And I've never even read a book on RE yet. So far I've gotten by
with perlre man page. :)
And I do just fine with vim syntax highlighting. :)
--
,-/- __ _ _ $Bill Luebkert ICQ=14439852
(_
And I don't need help building Reg-ex's:
I've got $Bill ;)
At 07:16 06/04/2001 -0500, Gregg Martinson wrote:
>Textpad is not on a par with Komodo. Komodo has syntax highlighting, it
>helps build regexen and it is free find it at www.activestate.com. Just my
>2 cents.
>
>-
>"Scatter Joy
You're asking for a bloody great flame war aren't you?
But I've not had *that* much coffee yet.
You say Komodo has syntax highlighting: so has Textpad.
The advantage of Textpad is that I wrote the better of
the Perl syntax files.
So there.
At 07:16 06/04/2001 -0500, Gregg Martinson wrote:
>T
At 20:10 23/01/2031 -0500, James D Carella wrote:
>Hello,
Hello.
> Can someone help me please?
Probably: you're in the right place. Let's see.
> I am definitely starting out in the
>programming thing and I am trying and learning Perl.
Good place to start ;)
>I have downloaded
>th
25 matches
Mail list logo