Scot Robnett wrote:
Hey y'all, I got over my brain cramp and thought I'd share with the group in
case it helps anyone trying to do something similar. I was making it way too
complicated. All I needed was:
if($email !~ /\w+@\w+\.\w{2,4}/)
{
# error stuff here
}
have you considered
At 10-3-2002 09:36 -0500, fliptop wrote:
Hey y'all, I got over my brain cramp and thought I'd share with the group in
case it helps anyone trying to do something similar. I was making it way too
complicated. All I needed was:
if($email !~ /\w+@\w+\.\w{2,4}/)
{
# error stuff here
}
have you
I don't think you can check for the existence of an e-mail address without
actually attempting to send mail to it. You can ping or traceroute a domain,
but only the mail server associated with it knows if the username is valid
or not. If this is wrong, somebody with information please reply to
I'm using mailx from within a script, so I can't use it interactively open (MFH, |
mailx -s 'Subject' [EMAIL PROTECTED])
print MFH end; blah blah blah... end close MFH;
Should I just be using mail? Do you know what the switch or option is for From:
someoneelse?
Rob Helmer [EMAIL PROTECTED]
Troy May wrote:
Hello,
How do you write to the beginning of a file? I see only 3 options to open a
file: to read, to overwrite, and to append to the end of the file.
If you think about the file as an array with one char on each index:
my @string = split (/|/, this is a test);
now
Troy May wrote:
Hello,
Hello,
How do you write to the beginning of a file? I see only 3 options to open a
file: to read, to overwrite, and to append to the end of the file.
I tried seeking to the beginning before the write, but it doesn't work.
Seek must only work for a read.
Any
On Sat, Mar 09, 2002 at 12:37:23AM +0100, Patrik Schaub [FMS] wrote:
the script needs to have root rights in order to do this,
but it will be used by another user. suidperl seems to be
the only way to achive this.
What about sudo ?
--
Johannes Franken
Professional unix/network development
hi johannes,
could be a sollution - thanks
but i really wonder why a perl script which is
setuid root and setguid root wont't do a simple
`/etc/init.d/hylafax restart`
for example.
(it`s not a tainting problem)
patrik
-Ursprungliche Nachricht-
Von: Johannes Franken [mailto:[EMAIL
If you wish to use nmake.exe, you need to download it.
It is available at.
ftp://ftp.microsoft.com/Softlib/MSLFILES/nmake15.exe. You can get tar and
gzip from http://www.itribe.net/virtunix/.
I recently had the same problem and (thanks ot those whe pointed me in the
right direction) downloading
Hi all,
i have a problem to split data of a file.
The data has the following structure :
key=value
key2=value2
When reading this file, there's no problem, but if I want to split the
lines...
This is the sourcecode:
open(file, foo.bar);
@myArray = file;
close(file);
foreach (@myArray)
On Mar 10, Karsten Borgwaldt said:
key=value
key2=value2
This is the sourcecode:
I can assure you it isn't; your code assigns to $1, $2, and $3 -- you
can't do that.
open(file, foo.bar);
If you had warnings on, you'd be told that filehandles should be written
in uppercase for safety.
The reason your code breaks is because you are
misunderstanding split(); it does NOT return what
the regex matched.
split /=/, a=b
does not return (a, =, b). It returns (a, b).
Unless of course you write split as:
split /(=)/, a=b;
But you rarely, if ever, need to do something like
Troy May [[EMAIL PROTECTED]] quoth:
*Hello,
*
*How do you write to the beginning of a file? I see only 3 options to open a
*file: to read, to overwrite, and to append to the end of the file.
*
*I tried seeking to the beginning before the write, but it doesn't work.
*Seek must only work for a
Patrik Schaub [FMS] [[EMAIL PROTECTED]] quoth:
*hi johannes,
*
*could be a sollution - thanks
*
*but i really wonder why a perl script which is
*setuid root and setguid root wont't do a simple
Check the filesystem and make sure your SA hasn't gone and done the wise
thing of mounting the volume
Hi,
I am trying to open a database connection and having a problem--it will NOT
open.
Here is the code that I am using.
# security is the name of the database.
#user_data is the name of the access table
$path = $Server-MapPath(security.mdb);
$data = driver={Microsoft Access Driver
Hello all,
I have some text here that I have placed in a string. I want to be able
to extract words between text of my choice. For example in the
string...
$string = Hello world In: crud all Your.;
($mytext) = $string =~ /In:(.*)Your/;
The above works fine but how can I tell my regex to
You can disregard the previous message -- I finally got to work, (by sheer
tiral and error). If any is interested, let me know and I will send the
code that woks.
Thomas Whitney [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
I am trying to open a
G'day all,
Just wondering if some one can help me with the folloing problem...?
Basically I have a variable that will change at regular intervals. The
varible may look like this...
$var = Crud Crud Call Distance: UNfasdfasdfasdfasdfasdn alternative.
(fasdfsda) SuperZone region: Gawler Call
Hey All,
If I have a string that looks like the following...
$string = Crud I want Call Distance more crud skdafj 343sad55434 ;
How would I go about getting rid of everything after the Call distance
and including the Call Distance? Would it be somthing like the
following...?
($test) =
how about:
($test) = $string =~ /(.*Call Distance)/;
On Sunday, March 10, 2002, at 08:27 PM, Daniel Falkenberg wrote:
$string = Crud I want Call Distance more crud skdafj 343sad55434 ;
How would I go about getting rid of everything after the Call distance
and including the Call Distance?
oh - you didn't want to include 'Call Distance'?
then:
($test) = $string =~ /(.*)Call Distance/;
would only capture text up to 'Call Distance'. Needn't worry about rest of
string.
On Sunday, March 10, 2002, at 08:54 PM, bob ackerman wrote:
how about:
($test) = $string =~ /(.*Call
Bob,
This is what I had in the first place (($test) = $string =~ /(.*)Call
Distance/;). All I want to do is extract EVERYTHING before the first
instance of Call Distance:. From there using the same regular
expression I need to remove EVERYTHING after Call Distance:. Including
Call Distance:.
You want to extract the LEAST possible...use
$string =~ s/^(.*?)Call Distance/$1/;
Tanton
- Original Message -
From: Daniel Falkenberg [EMAIL PROTECTED]
To: bob ackerman [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 12:26 AM
Subject: RE: Stripping everything
Hi,
I wrote this simple script to upload files, but when I substitute param('uploadfile')
with the actual path in double quotes it doesn't work that way. However, it works
perfectly fine if I use the form to submit the path of the file through an html form
(the way it is below). Can anyone
24 matches
Mail list logo