Yeah, you're (of course) right. I know that regex and I can imagine what
difficulties could a rise if corethings get changed. You should not take my
mail too serious. In my opinion perl is one of the best and most complete
languages. But if someone asks me, if i miss something - "good old trim()"
w
Bullock, Howard A. wrote:
I want to alter some characters in a text variable, but only those
between two markers.
$text = 'axxxccvvvacasdcxaswrefajjawerasdcxaswrefajhhaasera';
I want to specify the start and the end and only change the a's
to 8's between the markers. How do I accomplish this
[EMAIL PROTECTED] wrote:
I've been trying for an hour or so to use Getopt::Long, but I just don't
get it... I've been reading FAQ's & docs but I need some more examples to
know how it works.
Well, I want to process arguments like:
perl command.pl arg_needed [ --flag1 one=something two=otherthing
Here is a snippet
use Date::Manip;
use MIME::Lite;
use Net::FTP;
#
# set time zone so Unix Date calls work
#
&Date_Init ("TZ=EST5EDT");
use vars qw($user,
$pass,
$server,
$filena,
$timeout,
$passive,
$renwdone,
$pause,
Marcos Lorenzo <[EMAIL PROTECTED]> wrote [5:10pm +0100]
ML > I've been trying for an hour or so to use Getopt::Long, but I just don't
ML > get it... I've been reading FAQ's & docs but I need some more examples to
ML > know how it works.
ML >
ML > Well, I want to process arguments li
I've been trying for an hour or so to use Getopt::Long, but I just don't
get it... I've been reading FAQ's & docs but I need some more examples to
know how it works.
Well, I want to process arguments like:
perl command.pl arg_needed [ --flag1 one=something two=otherthing | --flag2 | --flag3 ]
an
Fernando Freire Baez (Medicare) wrote:
Hello,
I have an script that have to open and read a file all days in the morning.
The script is fine but I have a little doubt about the file name. The file
name is the day before the current day, so, for example: today is 11/14/2002
and the name of the fil
This will do it for you :-
use Time::Local;
$today = timelocal(localtime);
@yesterday = localtime($today - (24 * 60 * 60));
my ($mday,$mon,$year) = (@yesterday)[3..5];
$mon=++$mon;
if ($mon < 10){$mon="0$mon";}
if ($mday < 10){$mday="0$mday";}
$year=$year+1900;
$filename="$mday$mon$year";
prin
Hello,
I have an script that have to open and read a file all days in the morning.
The script is fine but I have a little doubt about the file name. The file
name is the day before the current day, so, for example: today is 11/14/2002
and the name of the file that the script have to open is 111320
[snip]
> > Title - "perl.exe - Unable to Locate DLL"
> > "The dynamic link library RASFIL32.DLL could not be
> > found in the specified path " [Perl\bin is in
> > my path]
> >
[snip]
> >
> > Anyone else ever see this?
> >
Yes, this is a Windows message. I've seen this type of error message man
On 14/11/2002 11:17:57 Geoffrey Leeming wrote:
>Thanks for the reply. Unfortunately that tells me what the PDC thinks is
>there, rather than what necessarily *is* there :-) One of the many
reasons I
>run this script is to check for unauthorised machines on our physical
network,
>so I need to ex
Thanks for the reply. Unfortunately that tells me what the PDC thinks is there,
rather than what necessarily *is* there :-) One of the many reasons I run this script
is to check for unauthorised machines on our physical network, so I need to explicitly
check every machine that's pingable insid
Hi!
I want to copy web pages in an automated process. I am able to do this
unsing LWP, storing each element of a page in a different file (HTML, GIF,
etc.).
The problem is that I want to store all these in PDF. I have been looking
for "HTML2PDF" softs on the web, but none of them seems to do the j
You could try using use Win32::NetAdmin. It has a various options
for looking at different machines on the network, eg use
Win32::NetAdmin::GetServers($Opdc, $dom, SV_TYPE_NT, \%nt);
and the keys in %nt will be the NT machines your network,
Win32::NetAdmin::GetServers($Opdc, $dom,
14 matches
Mail list logo