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

Re: problems with backreference

by norbert.csongradi (Beadle)
on Sep 06, 2011 at 14:21 UTC ( #924408=note: print w/replies, xml ) Need Help??


in reply to problems with backreference

Please give some info about how you send it over SSH, there should be some problem there (in shell escapes I think)

This should be better to send over SSH (not tested!):

ssh user@host 'perl -pi -e "s/^(ISA~.*?~.*?~.*?~.*?~.*?~.*?~.*?~)(.... +......)(....).(~.*)\$/\\1\\20\\3\\4/"'

Double escapes of \ chars become one backslash on the remote side, no need to escape tilde. Anyway, better to see your version still.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://924408]
help
Chatterbox?
talexb breathes deeply. Interview with BigCorp in 7 minutes.
[1nickt]: Go get em talexb
[1nickt]: Corion Yes, once bitten, twice shy with experimental. If you use use experimental qw/ refaliasing declared_refs/; you can do my (\%x, \%y) = @_ when you like hashes but are given hashrefs :-)

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2017-11-17 21:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (272 votes). Check out past polls.

    Notices?