Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

messing with @_

by polettix (Vicar)
on Jun 26, 2008 at 18:32 UTC ( [id://694245]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    1[@]
    scalar: 1
    1[�]
    
  2. or download this
    Use of implicit split to @_ is deprecated at ksose2.pl line 8.
    Use of implicit split to @_ is deprecated at ksose2.pl line 10.
    Use of implicit split to @_ is deprecated at ksose2.pl line 12.
    
  3. or download this
    #!/usr/bin/perl
    use strict;
    ...
    1 item(s): [0]
    scalar: 1
    1 item(s): [@]
    
  4. or download this
    scalar(@_ = split(/:/, $_[0]))
    
  5. or download this
    first
    scalar: 4
    ...
    1 item(s): [w]
    scalar: 1
    1 item(s): [w]
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-07-19 11:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.