Hi all
I have developed a perl control that creates a socket session. the socket
is then returned to the program that called the control.
I get a glob error.
Thanks in advance for any help.
Regards,
Jeremy A.
here is the code snippets:
dll control code
Is it possible to do a glob on a directory and get a list of files with a
certain extension( *.txt ) and also for a specific modification time?
I'm current doing:
my @file_list=glob(c:\\rawdata\\*.txt);
But I only want to get files modified on a certain date.
Jeff
- Original Message -
From: $Bill Luebkert [EMAIL PROTECTED]
But what needs to be done when the variable contains
'GLOB(0x1a754f0)' ?
Well, you put it there, so you should know what to do with it. :)
The thought of handling only those things that I know how to handle worries
me
- Original Message -
From: $Bill Luebkert [EMAIL PROTECTED]
This worked for me on AS 5.6/Win98SE:
# open2.pl
#!perl -w --
use strict;
use warnings;
use IPC::Open2;
my ($r, $w);
print STDERR Calling open2\n;
my $pid = open2 ($r, $w, 'C:\\perl\\bin\\perl.exe', 'echo.pl');
Sisyphus wrote:
Had to comment out the next 2 lines or it would simply print Calling open2
and then hang.
I returned 2 lines from the child - so you would have missed the hello line
if you did.
#$_ = $r; chomp;
# print Child returned: $_\n;
I don't get to see the next line of output.
- Original Message -
From: $Bill Luebkert [EMAIL PROTECTED]
The way that the child handles STDIN is confusing I'd say. :)
I managed to miss seeing your version of echo.pl in your post - as you
probably suspected :-)
It does look confusing, but at least it's up and running and I'm
I have a routine trying to rename files with patterns like this:
From ABC to ABC.EXT
When I do a @list = glob($filename) I get a nul return. I'm using File::Glob glob so that I can compile with Perl2Exe, if than makes any difference.
Thanks,
John
There is nothing inherently wrong with the statement
@list = glob($filename);
but you need to provide more information. What is the value of $filename?
What is the name of a file that you expect to see in @list? What is the
working directory set to?
Tim
John,
Try using the following,
instead, and see if you get better results:
use File::DosGlob qw/GLOBAL_glob/;
...
$filename = '*.*';
my @list = glob($filename);
!c
- Original Message -
From:
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 02, 2002
I want to get all the HTML files in a directory that contains a space in its path
using the glob operator. I use
my @html_files = glob "$input_dir/*.html";
This works when the $input_dir doesn't contain a space. If it does, it fails (it gives
me just the name of the directory up to
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 31, 2002 1:28 AM
Subject: using glob with filenames with spaces
I want to get all the HTML files in a directory that contains
a space in its
path
using the glob operator. I use
my
11 matches
Mail list logo