[Perl-unix-users] Some help with strings

2004-04-05 Thread Johnno
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

Re: [Perl-unix-users] Mouse overs

2003-11-03 Thread Johnno
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

Re: [Perl-unix-users] Mouse overs

2003-11-02 Thread Johnno
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

[Perl-unix-users] removing tabs

2003-08-29 Thread Johnno
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

[Perl-unix-users] Help please with a search routine

2002-05-22 Thread Johnno
'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,

Re: [Perl-unix-users] file uploads in Perl

2002-05-18 Thread Johnno
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

[Perl-unix-users] file uploads in Perl

2002-05-17 Thread Johnno
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

[Perl-unix-users] file uploads in perl

2002-05-17 Thread Johnno
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

Re: [Perl-unix-users] open file etc..

2002-05-01 Thread Johnno
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

[Perl-unix-users] open file etc..

2002-05-01 Thread Johnno
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 ___

[Perl-unix-users] Changing values

2002-04-23 Thread 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

[Perl-unix-users] length of a string

2002-04-04 Thread Johnno
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

[Perl-unix-users] some more help please?

2002-03-29 Thread Johnno
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

Re: [Perl-unix-users] split command

2002-03-29 Thread Johnno
uot;,"data7 ","data8" "data1","data2","data3","data4","data5","data6","data7 ","data8" "data1","data2","data3","data4","data5","data6",&qu

[Perl-unix-users] split command

2002-03-29 Thread Johnno
] 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

[Perl-unix-users] Perl Help Please

2002-03-28 Thread 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

Re: [Perl-unix-users] perl questions

2002-03-25 Thread Johnno
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

[Perl-unix-users] perl questions

2002-03-25 Thread Johnno
e a little tricky... Thanks, Johnno ___ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: [Perl-unix-users] Sendmail Web-Based Console.

2002-03-20 Thread Johnno
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

[Perl-unix-users] Postfix

2002-02-26 Thread Johnno
gi.. Many Thanks, Johnno ___ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

[Perl-unix-users] Apache and Perl

2002-01-09 Thread Johnno
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

[Perl-unix-users] ipchains

2001-09-24 Thread Johnno
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

[Perl-unix-users] Mysql

2001-06-24 Thread Johnno
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