Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: regular expression

by ansh batra (Friar)
on Feb 15, 2012 at 12:00 UTC ( [id://953923]=note: print w/replies, xml ) Need Help??


in reply to regular expression

$lengeth=length($x) $temp=substr($x,6) //to get the first six digits $temp1=substr($x,($length-4),$length) //to get the last 4 for(int i=0;i<($length-10);i++) { $temp +='X'; } $temp +=$temp1;
the code is untested and surely contains error.

Replies are listed 'Best First'.
Re^2: regular expression
by marto (Cardinal) on Feb 15, 2012 at 12:18 UTC

    "the code is untested and surely contains error."

    This statement is unlikely to fill people with confidence.

      sorry marto
      i am in a place where i am not allowed to install any software
      missing my perl days very badly

        Don't be sorry, it was intended as more of an observation rather than a complaint. If you can use ssh perhaps you could connect to your home system, if not search for free shell access which will allow Perl. A one off payment of 36 USD will get you lifetime ARPA membership over at SDF.

        Update: Other free (and almost free) shell providers exist, offering different levels of access, this was the first returned from a search.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://953923]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 23:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found