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

Re^3: Parse data from a line to get 2 variables

by devnul (Monk)
on May 13, 2006 at 00:48 UTC ( #549151=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
            my ($lot,$prod) = m/(\S+)\s+(\S+)/;
    
  2. or download this
         $Info=$_;
         $lotNumber=substr($Info, 0,8);
         $productName=substr($Info, 9);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2022-05-22 04:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (79 votes). Check out past polls.

    Notices?