Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Assign Output of Regex to Array (newbie)

by davido (Cardinal)
on Sep 25, 2013 at 22:06 UTC ( [id://1055754]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @PRC_PRIV_ONLY = (
      'one string',
    ...
    foreach my $element ( @PRC_PRIV_ONLY ) {
      $element .= ' appended data';
    }
    
  2. or download this
    foreach my $element ( @PRC_PRIV_ONLY ) {
      $element = [ $element, '2nd element' ];
    }
    
  3. or download this
    @PRC_PRIV_ONLY = ( 
      [ 'one string',    '2nd element' ],
      [ 'two strings',   '2nd element' ],
      [ 'three strings', '2nd element' ],
    );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1055754]
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-04-18 00:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found