Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Re: Use of uninitialized value in pattern match (m//)

by davido (Cardinal)
on Feb 10, 2004 at 05:54 UTC ( [id://327822]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if($tmp2){
      if($tmp2 =~ m/'/){ 
     ...
    
  2. or download this
    use strict;
    use warnings;
    ...
    $string =~ /(\d)(\d)/;  # This match fails.
    
    print $2, "\n";
    
  3. or download this
    world
    world
    
  4. or download this
    my $tmp2 = $var;  # Because of bad logic we don't know
                      # if $var is defined, thus don't know if
    ...
    if ( defined( $tmp2 ) and $tmp2 =~ m/regex/ ) {
        # Do your stuff.
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-03-28 22:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found