Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Matching @ in string

by dwu (Monk)
on Nov 22, 2007 at 13:24 UTC ( [id://652364]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    
    if ("h@" =~ /(\@)/ ) { print $1 }
    if ("h@t" =~ /(\@)/ ) { print $1 }
    
  2. or download this
    Possible unintended interpolation of @t in string at ./scratch.pl line
    + 6.
    Global symbol "@t" requires explicit package name at ./scratch.pl line
    + 6.
    Execution of ./scratch.pl aborted due to compilation errors.
    
  3. or download this
    #!/usr/bin/perl
    use strict;
    ...
    
    if ('h@' =~ /(\@)/ ) { print $1 }
    if ('h@t' =~ /(\@)/ ) { print $1 }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-16 07:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found