Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: String parse

by OM_Zen (Scribe)
on Feb 01, 2003 at 04:53 UTC ( #231806=note: print w/ replies, xml ) Need Help??


in reply to String parse

Hi ,

use strict; while(<INPUT>){ local $/; my $line = $_; ########@push @lineinfo, split $line; ###### The @push .... is not a compiling code my @lineinfo = split(' ',$line); ########## @lineinfo = () ; I have less cluesss on what you are do +ing ######### You have to use strict; ######### learn about split,push commands and perldoc perlop ######### perldoc split ######### perldoc push ######### perldoc perlop ######### abotu strict module too


Comment on Re: String parse
Download Code
Re: Re: String parse
by ibanix (Hermit) on Feb 02, 2003 at 09:29 UTC
    You have to use strict

    Well no, you don't have to use strict. But it's recommended, to make your life easier. :-)

    ibanix

    $ echo '$0 & $0 &' > foo; chmod a+x foo; foo;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2014-07-14 07:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (256 votes), past polls