Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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

Replies are listed 'Best First'.
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (2)
As of 2016-12-09 04:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (148 votes). Check out past polls.