Hello Reinhard,
With your link I was able to download the module. Thanks!
There is a small problem that is stopping me from having fun with the
module. In trying to install the module, I get this error:
D:\ppm install Device-SerialPort.ppd
Install 'Device-SerialPort'
#!C:\perl\bin\perl
open(TXT, sample.txt);
@text = TXT;
close(TXT);
print Content-type:text/html\n\n html;
print Text file contents:br/;
foreach $line(@text)
{
print $line br/;
}
print /html;
# This will loop through all the line in the file,
# substitute commas with pipes on each line,
#
I am programing a cgi that performs a series of tasks while interacting with
the client and that should keep a session alive for a week.
In order to do that I decided to create a session directory each time a
client sings up.
The directory is create while the scrip runs under linux, but under
Title: split() skipping trailing delimiters
DZ-Jay wrote, on Mon
05-Dec-05 07:58
: I have a
problem using the split() function: When there are trailing:
delimiters, without any content between them, split() skips them.
For
From "perldoc -f
split":
If
LIMIT is specified and positive,
DZ-Jay wrote:
Hello:
I have a problem using the split() function: When there are
trailing delimiters, without any content between them, split() skips
them. For example, this:
my @foo = split(/,/, 'this,is,a,test,,');
yields:
this
is
a
test
while I'm expecting:
Alejandro Santillan [EMAIL PROTECTED] wrote: I am programing a cgi that performs a series of tasks while interacting withthe client and that should keep a session alive for a week.In order to do that I decided to create a session directory each time aclient sings up.The directory is create while
See
use File::Path; mkpath(['/foo/bar/baz', 'blurfl/quux'], 1, 0711); rmtree(['foo/bar/baz', 'blurfl/quux'], 1, 1);
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe:
Oh, you know, I just saw that. Hum, I wonder how I missed it. Anyway,
then I guess using this would do...
split /,/, $foo, -1;
dZ.
Andreas.Kamentz wrote:
Hi dZ,
According to documentation, the prototype of split has a third parameter:
split /PATTERN/, EXPR, LIMIT
If LIMIT
Joe Discenza wrote:
DZ-Jay wrote, on Mon 05-Dec-05 07:58
: I have a problem using the split() function: When there are trailing
: delimiters, without any content between them, split() skips them. For
From perldoc -f split:
If LIMIT is specified and positive, splits into
I was in the mall with my Perl book, wearing my son's Marine pants from
basic training. (I like to have something to read while my wife shops.)
A young man comes up to me and says, Where did you get the new camoh? (I
didn't get that last word.)
I showed him the book, about to explain that
Does anyone have any experience with the OEAPI product from NEKTRA? Here are
the General Features from their web site:
. All the functionality is implemented in a COM object.
. A demo application written in Visual Basic is included in the package.
. A demo application written in Visual C++
Trying to migrate a perl script from linux to windows (IIS), I need to
execute a command line from within the perl script.
This snippet worked fine in linux (provided the path is correct), but it
didn't work in windows:
$sys=C:/antiword/antiword.exe -t -w 1 document.doc
I was in the Army when it went to the BDU (battle dress uniform). It was the source of numerous similar jokes in my unit.
John T Shea
DeveloperOn 12/5/05, Charles K. Clarkson [EMAIL PROTECTED] wrote:
Jerry Kassebaum wrote:: I was in the mall with my Perl book, wearing my son's Marine pants: from
It depends on the threading model of the COM object.. Perl OLE is not
multithreading capable yet (and probably won't be any time soon (But,
leave it to Jan to prove me wrong). But yes, in general, Perl can call
COM components (like Outlook, Excel, Word, ChartDirector and others)
with Win32::OLE.
First:
use \ not /.
Second:
You have to escape the \ with a second \ when using double quotes.
Your line needs to read:
$sys=C:\\antiword\\antiword.exe -t -w 1 document.doc
C:\\Inetpub\\wwwroot\\somedir\\document.txt;
That shou'd work.
Alternatively, you could do it this way:
At 04:02 PM 12/5/2005 -0300, Alejandro Santillan wrote:
Trying to migrate a perl script from linux to windows (IIS), I need to
execute a command line from within the perl script.
This snippet worked fine in linux (provided the path is correct), but it
didn't work in windows:
That sounds very much
Use sysread. You might want to use the IO:Select module to check if the
call will block before calling...
gives you a bit more control.
Cheers,
john
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Foo Ji-Haw
Sent: Tuesday, December 06, 2005 12:30
Foo Ji-Haw wrote:
Hi all,
Just want to share and ask something about reading from the sockets.
Normally my connection to the Other Side receives line inputs. But not
all the time the eol character is standard across the various remote
connections; sometimes it's just a 0x0D.
I realise
Thanks for the good tip John and Bill,
Will give sysread a go.
$Bill Luebkert wrote:
Foo Ji-Haw wrote:
Hi all,
Just want to share and ask something about reading from the sockets.
Normally my connection to the Other Side receives line inputs. But not
all the time the eol character is
19 matches
Mail list logo