Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Perl replace

by Corion (Patriarch)
on May 25, 2015 at 11:50 UTC ( [id://1127682]=note: print w/replies, xml ) Need Help??


in reply to Perl replace

First of all, add use strict; to the top of your script. This will enable Perl to warn you that it finds an array (@jnpodb).

Then, read perlop (and perlre) on how to escape things in regular expressions and strings.

You need to escape the @ by quoting it with a backslash:

\@jnpodb

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-03-28 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found