Hello All,
I have a string that has got
123|4|||5
What I need it in is
1|2|3|4|5
I have tried
$string =~ s/\||/\|/g;
and i get this as a result
|1|2|3||45|
what am i doing wrong?
Mnay Thanks,
Johnno
___
Perl-Unix-Users
Hello Danny,
no not really, most of the perl apps I write are for web..
I have got to the stage where a have a mix of html, java and perl..
Johnno
- Original Message -
From: "Danny Brow" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 03, 20
That is normal done via CSS or Javescript..
Johnno
- Original Message -
From: "Danny Brow" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 03, 2003 3:37 PM
Subject: [Perl-unix-users] Mouse overs
> Any one know if you can do mouse overs usin
Hello All,
what do i use to remove tabs... ie I use this to remove linefeeds
$line[$x] =~ s/\r//g; # remove linefeeds
Many Thanks,
Johnno
___
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http
'keyword'} if will set
the var $found ="1"
if ($field[3] =~/$FORM{'keyword'}/i) {$found="1";}
I have even tried
if ($field[3] =~/\(?:$FORM{'keyword'})\b/i) {$found="1;}
but still having no luck..
Can someone help me please??
Many Thanks,
to the server using the following code and
save it as pic.jpg on the server..
open (OUTFILE, ">$newmain");
$buffer =;
print OUTFILE $buffer;
close (OUTFILE);
but for some reason it only uplaod the first 21 bytes
many thanks,
Johnno
- Original Message
how do you upload a file in perl??
I have var $file which is the file on the local HD.. from there is where a
get into trouble..
open (OUTFILE, ">$file");
$buffer =;
print OUTFILE $buffer;
close (OUTFILE);
Johnno
___
Perl-Unix-Users
how do you upload a file in perl??
I have var $file which is the file on the local HD.. from there is where a
get into trouble..
open (OUTFILE, ">$file");
$buffer =;
print OUTFILE $buffer;
close (OUTFILE);
Johnno
___
Perl-Unix-Users
rom: "Gary Turner" <[EMAIL PROTECTED]>
To: "'Johnno'" <[EMAIL PROTECTED]>
Sent: Wednesday, May 01, 2002 9:34 PM
Subject: RE: [Perl-unix-users] open file etc..
>
> Hi,
>
> The error can be found in $!
>
> open(OUT,">$working_folder/co
open(OUT,">$working_folder/counter.txt") or die "cannot create counter
file";
how can i make it so it will tell me what the error is and don't cannot
create counter file??
Many Thanks,
Johnno
___
How do i change $value="View Data" to $value="View_Data";
Many Thanks,
Johnno
___
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
How do i find out how long (many chars) a string has.. ie..
$name="valentine is here";
Many thanks,
Johnno
___
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
I am using this command and it works find...
how would i change it so it would pick the ," and then do the split..
at the moment it picks up the ,
push @data, split /\,/,$_;
Many thanks for all your help so far.
Johnno
___
Perl-Unix-Users ma
uot;,"data7 ","data8"
"data1","data2","data3","data4","data5","data6","data7 ","data8"
"data1","data2","data3","data4","data5","data6",&qu
] should say
access_registration
and field $data[8] should say
eBay opens website for New Zealanders
I think the problem is that i have not taken in that at the end of every
data line is a return..
how would i go about fixing this??
Many thanks,
Johnno
print out the data that i want and leave the rest.. just getting
the data loaded and shorted in causing a little problem...
can anyone help please??
Many Thanks,
Johnno
___
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
sweet works a treat... many thanks guys..
Johnno
- Original Message -
From: "Simon Oliver" <[EMAIL PROTECTED]>
To: "Johnno" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, March 25, 2002 9:53 PM
Subject: Re: [Perl-unix-users] perl qu
e a little tricky...
Thanks,
Johnno
___
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
try webmin www.webmin.com i use this all the time for sendmail/postfix
etc... basicallt it is a handyman toolbox :))
Johnno
- Original Message -
From: "Tim Rhodes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 21, 2002 7:26 AM
Subject: [Perl-un
gi..
Many Thanks,
Johnno
___
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
I use the .htaccess in apache to access web pages i want to keep private..
how can i find out in perl how logon to those pages??
Many Thanks,
Johnno
___
Perl-Unix-Users mailing list. To unsubscribe go to
http://listserv.ActiveState.com/mailman
What I only want open is dns, http, https, ftp active, ftp passive, ssh and
port 1
will the follow list protect me and only allow the above list throw... or
have i gone about it the wrong way??
Johnno
ipchains -L
Chain input (policy DENY):
target prot opt source
I have installed MySql and it is working find...
what perl modules do i need to install to be able to access the database via
a perl script??
and will this also work with php files that access the database??
Johnno
___
Perl-Unix-Users mailing list
23 matches
Mail list logo