|
|
 |
RE: FN-FORUM perl problem
date posted 24th January 2001 17:08
Hi Rob
It does the following to the string passed into the strip subroutine:
Replaces with just one
Replaces new lines with
Replaces cariage returns with
Removes pipe (|) characters
Replaces double quotation marks with "
Replaces %95 with the tag
It then returns the modified string.
Hope this helps
Andy
> -----Original Message-----
> From: [EMAIL REMOVED]
> [EMAIL REMOVED] Behalf Of [EMAIL REMOVED]
> Sent: 24 January 2001 16:54
> To: [EMAIL REMOVED]
> Subject: FN-FORUM perl problem
>
>
> Can anyone interperet this subroutine as I know little about perl.
>
> # STRIP SUBROUTINE
> sub strip {
>
> my($cheese)= @_;
>
> $cheese =~ s///g;
> $cheese =~ s/
//g;
> $cheese =~ s/
//g;
> $cheese =~ s/|//g;
> $cheese=~ s/["]/"/g;
> $cheese =~ s/%95//g;
> return ($cheese);
> thanks in advance
>
> Rob
>
>
> ============================================================
>
> * Free listing for freelancers
> * Free to advertise jobs
> * Free jobs distribution service
> * Free database of 1000 freelancers
>
> Freelancers and Freelance Jobs
> http://www.freelancers.net
>
> To post to the Forum:
> [EMAIL REMOVED]
>
> To unsubscribe please email:
> [EMAIL REMOVED]
>
> If you have difficulties unsubscribing please email:
> [EMAIL REMOVED]
>
> To subscribe to the digest for this list or for further
> information please visit:
> http://www.freelancers.net/forum.html
|
 |
|