Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

(Ovid) RE: From one beginner to others . . .

by Ovid (Cardinal)
on Jul 15, 2000 at 21:53 UTC ( [id://22715]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
        Regex => '($a=$1, $b=$2, $c=$3, $d=$4) if $myvar   =~ /^([^,]+),([
    +^,]+),([^,]+),([^,]+)$/',
        Split => '@results = split /,/, $myvar'
    });
    
  2. or download this
    Benchmark: timing 1000000 iterations of Regex, Split...
         Regex: 27 wallclock secs (28.06 usr +  0.00 sys = 28.06 CPU)
         Split: 16 wallclock secs (16.19 usr +  0.00 sys = 16.19 CPU)
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-25 07:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found