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 hel
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 everyt
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:. S
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 Distance
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 Distan
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) = $stri
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
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 d
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 st
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 (*.mdb)}
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 vol
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 fo
> 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
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 s
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 = ;
close(file);
foreach (@myArray) {($
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 n
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 PR
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 developme
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.
>
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");
n
20 matches
Mail list logo