Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: how to get numbers only from n numbers or more digit numbers?

by virudinesh (Acolyte)
on Jun 13, 2013 at 07:26 UTC ( #1038696=note: print w/replies, xml ) Need Help??


in reply to Re: how to get numbers only from n numbers or more digit numbers?
in thread how to get numbers only from n numbers or more digit numbers?

chapter 01 no need only 02,03,04
  • Comment on Re^2: how to get numbers only from n numbers or more digit numbers?

Replies are listed 'Best First'.
Re^3: how to get numbers only from n numbers or more digit numbers?
by aitap (Deacon) on Jun 13, 2013 at 07:32 UTC

    split by ",", shift the resulting array, here you are.

    my @results = split /,/,$_; shift @results; print "@results\n";
Re^3: how to get numbers only from n numbers or more digit numbers?
by 2teez (Priest) on Jun 13, 2013 at 07:31 UTC

    use warnings; use strict; my $f='chapter 01,02,03,04'; if(my @m=$f=~/,([0-9]{2})/g){ print "@m\n"; #prints 02 03 04 }
    Note: I would rather use a scalar variable, instead of an array variable with only one element like you had.

    If you tell me, I'll forget.
    If you show me, I'll remember.
    if you involve me, I'll understand.
    --- Author unknown to me
      if your using use @m array.. if possible to store in any variable.

        if your using use @m array.. if possible to store in any variable.

        No, all variables must be named @m

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1038696]
help
Chatterbox?
[Discipulus]: ..or inspect the source code of the module
[makita]: I am doing this:
[makita]: my $sig = $wss->signature( schema => $wsdl, token => $token, sign_types=>'wsa: Action','wsa:To', 'wsu:Timestamp', 'wsa:MessageID',' SOAP-ENV:Body', signer=>DSIG_RSA_S HA1, public_key => $cert,
[Corion]: Oof, I haven't done much with signing SOAP requests. markov is usually somebody good to ask via mail ;)
[makita]: I need to create a SOAP call where are signed more types not only the body
[makita]: I am inspecting it second day :)
[makita]: Thanks
[Discipulus]: better to ask a full SOPW
erix self-flagellates with the cluebat
[erix]: indeed had to be( time make check-world ) > test_run2.output 2>&1

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2017-03-23 08:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (285 votes). Check out past polls.