Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Using $_ as a temp var, especially in functions

by converter (Priest)
on Oct 23, 2002 at 04:24 UTC ( [id://207293]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    local $_ = shift;
    s/\A[ \t]+//;
    ...
    tr/a-zA-Z0-9//cd;
    return unless length;
    ...
    
  2. or download this
    my $x = shift;
    $x =~ s/\A[ \t]+//;
    ...
    $x =~ tr/a-zA-Z0-9//cd;
    return unless length $x;
    ...
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-16 13:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found