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

Re: unexpected: inside sub($1,$2) if do // then arguments will be changed

by Khen1950fx (Canon)
on Sep 11, 2011 at 08:52 UTC ( [id://925335]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -slw
    
    ...
    my $str = 'abc def';
    $str =~ /(\w+)\s+(\w+)/;
    print "\(&mysub(<$1> <$2>))";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-24 22:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found